Use a twine.

llvm-svn: 118892
This commit is contained in:
Benjamin Kramer 2010-11-12 15:42:18 +00:00
parent 970afd926f
commit 8c173cc364
1 changed files with 1 additions and 3 deletions

View File

@ -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());
} }
} }