Replace llvm::utostr calls in Twine context with Twines. NFC.

llvm-svn: 256377
This commit is contained in:
Benjamin Kramer 2015-12-24 10:07:37 +00:00
parent b40553751a
commit b42d9a5f06
2 changed files with 3 additions and 3 deletions

View File

@ -1018,7 +1018,7 @@ void CXXNameMangler::mangleUnqualifiedName(const NamedDecl *ND,
unsigned UnnamedMangle = getASTContext().getManglingNumber(TD);
Out << "Ut";
if (UnnamedMangle > 1)
Out << llvm::utostr(UnnamedMangle - 2);
Out << UnnamedMangle - 2;
Out << '_';
break;
}
@ -2450,7 +2450,7 @@ void CXXNameMangler::mangleAArch64NeonVectorType(const VectorType *T) {
EltName = mangleAArch64VectorBase(cast<BuiltinType>(EltType));
std::string TypeName =
("__" + EltName + "x" + llvm::utostr(T->getNumElements()) + "_t").str();
("__" + EltName + "x" + Twine(T->getNumElements()) + "_t").str();
Out << TypeName.length() << TypeName;
}

View File

@ -4700,7 +4700,7 @@ public:
// ACLE 6.4.1 ARM/Thumb instruction set architecture
// __ARM_ARCH is defined as an integer value indicating the current ARM ISA
Builder.defineMacro("__ARM_ARCH", llvm::utostr(ArchVersion));
Builder.defineMacro("__ARM_ARCH", Twine(ArchVersion));
if (ArchVersion >= 8) {
// ACLE 6.5.7 Crypto Extension