mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 11:39:35 +00:00
Replace llvm::utostr calls in Twine context with Twines. NFC.
llvm-svn: 256377
This commit is contained in:
parent
b40553751a
commit
b42d9a5f06
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user