From 1de72bda4e6114393ddc8bad2c13d8abee3d374a Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sat, 23 May 2015 17:20:53 +0000 Subject: [PATCH] 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 --- lib/Target/TargetMachine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Target/TargetMachine.cpp b/lib/Target/TargetMachine.cpp index 36875b47ab6..28242502ec8 100644 --- a/lib/Target/TargetMachine.cpp +++ b/lib/Target/TargetMachine.cpp @@ -185,7 +185,7 @@ void TargetMachine::getNameWithPrefix(SmallVectorImpl &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); -- 2.34.1