mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Use raw_ostream instead of sstream
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80704 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user