[llvm] r238104 - Bump SmallString to the minimum required amount for raw_ostream to avoid allocation.
Benjamin Kramer
benny.kra at googlemail.com
Sat May 23 10:20:54 PDT 2015
Author: d0k
Date: Sat May 23 12:20:53 2015
New Revision: 238104
URL: http://llvm.org/viewvc/llvm-project?rev=238104&view=rev
Log:
Bump SmallString to the minimum required amount for raw_ostream to avoid allocation.
NFC.
Modified:
llvm/trunk/lib/Target/TargetMachine.cpp
Modified: llvm/trunk/lib/Target/TargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/TargetMachine.cpp?rev=238104&r1=238103&r2=238104&view=diff
==============================================================================
--- llvm/trunk/lib/Target/TargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/TargetMachine.cpp Sat May 23 12:20:53 2015
@@ -185,7 +185,7 @@ void TargetMachine::getNameWithPrefix(Sm
}
MCSymbol *TargetMachine::getSymbol(const GlobalValue *GV, Mangler &Mang) const {
- SmallString<60> NameStr;
+ SmallString<128> NameStr;
getNameWithPrefix(NameStr, GV, Mang);
const TargetLoweringObjectFile *TLOF = getObjFileLowering();
return TLOF->getContext().getOrCreateSymbol(NameStr);
More information about the llvm-commits
mailing list