diff options
| author | Jim Grosbach <grosbach@apple.com> | 2009-09-01 18:49:12 +0000 |
|---|---|---|
| committer | Jim Grosbach <grosbach@apple.com> | 2009-09-01 18:49:12 +0000 |
| commit | c5fcbdc7ee39a874242b64ff1ca5d436837ba094 (patch) | |
| tree | 13d65ae1b04bfeb56d2fc426417552775d87a72f /llvm/lib/CodeGen | |
| parent | 8900f3ec5784487ac21bfe873491c7262690022a (diff) | |
| download | bcm5719-llvm-c5fcbdc7ee39a874242b64ff1ca5d436837ba094.tar.gz bcm5719-llvm-c5fcbdc7ee39a874242b64ff1ca5d436837ba094.zip | |
Use raw_ostream instead of sstream
llvm-svn: 80704
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp index 6d6af83bd27..8e0485e8cf0 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -28,8 +28,8 @@ #include "llvm/Support/Mangler.h" #include "llvm/Support/Timer.h" #include "llvm/Support/raw_ostream.h" +#include "llvm/ADT/SmallString.h" #include "llvm/ADT/StringExtras.h" -#include <sstream> using namespace llvm; static TimerGroup &getDwarfTimerGroup() { @@ -601,12 +601,10 @@ void DwarfException::EmitExceptionTable() { EmitLabel("exception", SubprogramCount); if (MAI->getExceptionHandlingType() == ExceptionHandling::SjLj) { - std::stringstream out; - out << Asm->getFunctionNumber(); - std::string LSDAName = - Asm->Mang->makeNameProper(std::string("LSDA_") + out.str(), - Mangler::Private); - O << LSDAName << ":\n"; + SmallString<256> LSDAName; + raw_svector_ostream(LSDAName) << MAI->getPrivateGlobalPrefix() << + "_LSDA_" << Asm->getFunctionNumber(); + O << LSDAName.str() << ":\n"; } // Emit the header. |

