parent
970afd926f
commit
8c173cc364
|
@ -18,7 +18,6 @@
|
||||||
#include "clang/AST/RecordLayout.h"
|
#include "clang/AST/RecordLayout.h"
|
||||||
#include "llvm/Type.h"
|
#include "llvm/Type.h"
|
||||||
#include "llvm/Target/TargetData.h"
|
#include "llvm/Target/TargetData.h"
|
||||||
#include "llvm/ADT/StringExtras.h"
|
|
||||||
#include "llvm/ADT/Triple.h"
|
#include "llvm/ADT/Triple.h"
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
using namespace clang;
|
using namespace clang;
|
||||||
|
@ -2563,8 +2562,7 @@ void MSP430TargetCodeGenInfo::SetTargetAttributes(const Decl *D,
|
||||||
// Step 3: Emit ISR vector alias.
|
// Step 3: Emit ISR vector alias.
|
||||||
unsigned Num = attr->getNumber() + 0xffe0;
|
unsigned Num = attr->getNumber() + 0xffe0;
|
||||||
new llvm::GlobalAlias(GV->getType(), llvm::Function::ExternalLinkage,
|
new llvm::GlobalAlias(GV->getType(), llvm::Function::ExternalLinkage,
|
||||||
"vector_" +
|
"vector_" + llvm::Twine::utohexstr(Num),
|
||||||
llvm::LowercaseString(llvm::utohexstr(Num)),
|
|
||||||
GV, &M.getModule());
|
GV, &M.getModule());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue