From: Jim Grosbach Date: Tue, 1 Sep 2009 18:55:08 +0000 (+0000) Subject: reduce size of SmallString to something more reasonable X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=ee793a6c197b2cccfee96c6da1bbe6a2048830cc;p=oota-llvm.git reduce size of SmallString to something more reasonable git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80710 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index 8e0485e8cf0..2b1a44f674a 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -601,7 +601,7 @@ void DwarfException::EmitExceptionTable() { EmitLabel("exception", SubprogramCount); if (MAI->getExceptionHandlingType() == ExceptionHandling::SjLj) { - SmallString<256> LSDAName; + SmallString<16> LSDAName; raw_svector_ostream(LSDAName) << MAI->getPrivateGlobalPrefix() << "_LSDA_" << Asm->getFunctionNumber(); O << LSDAName.str() << ":\n"; diff --git a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp index 244188a4b35..20af40568a7 100644 --- a/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp @@ -160,7 +160,7 @@ namespace { std::string Name; if (ACPV->isLSDA()) { - SmallString<256> LSDAName; + SmallString<16> LSDAName; raw_svector_ostream(LSDAName) << MAI->getPrivateGlobalPrefix() << "_LSDA_" << getFunctionNumber(); Name = LSDAName.str();