OSDN Git Service

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 8e0485e..2b1a44f 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 244188a..20af405 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();