reduce size of SmallString to something more reasonable
authorJim Grosbach <grosbach@apple.com>
Tue, 1 Sep 2009 18:55:08 +0000 (18:55 +0000)
committerJim Grosbach <grosbach@apple.com>
Tue, 1 Sep 2009 18:55:08 +0000 (18:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80710 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfException.cpp
lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp

index 8e0485e8cf05e7d419c18c123296ee599448ee89..2b1a44f674ad1310bf7a97717b883cc7b07b91a9 100644 (file)
@@ -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";
index 244188a4b35e644975626f06b68530e79b59d3ab..20af40568a723cdb5e94fdbad7d1ca35bc974c02 100644 (file)
@@ -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();