aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2009-09-01 18:55:08 +0000
committerJim Grosbach <grosbach@apple.com>2009-09-01 18:55:08 +0000
commitee793a6c197b2cccfee96c6da1bbe6a2048830cc (patch)
tree1d53a23c5593ee425c1db029489bd37886f034b3
parentda230cb876edf0d4fa8eefc289b8addfb722cd07 (diff)
downloadexternal_llvm-ee793a6c197b2cccfee96c6da1bbe6a2048830cc.zip
external_llvm-ee793a6c197b2cccfee96c6da1bbe6a2048830cc.tar.gz
external_llvm-ee793a6c197b2cccfee96c6da1bbe6a2048830cc.tar.bz2
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
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfException.cpp2
-rw-r--r--lib/Target/ARM/AsmPrinter/ARMAsmPrinter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp
index 8e0485e..2b1a44f 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 244188a..20af405 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();