Bump SmallString to the minimum required amount for raw_ostream to avoid allocation.

NFC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238104 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2015-05-23 17:20:53 +00:00
parent 2b5e37952f
commit 1de72bda4e

View File

@ -185,7 +185,7 @@ void TargetMachine::getNameWithPrefix(SmallVectorImpl<char> &Name,
}
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);