X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FCodeGen%2FMachineFunction.cpp;h=6138aef4adc193231941317bc94b81aa1e75f269;hp=20210adf30f331e59ad530497f7541dd3fa273c4;hb=8dd8d5c2b2ad0f9dd1ca01c0a7d8ebac57b8537d;hpb=eca517deaa890b1658ed0452704f398ce80e47b8 diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index 20210adf30f..6138aef4adc 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -465,8 +465,9 @@ MCSymbol *MachineFunction::getJTISymbol(unsigned JTI, MCContext &Ctx, const char *Prefix = isLinkerPrivate ? DL->getLinkerPrivateGlobalPrefix() : DL->getPrivateGlobalPrefix(); - small_string_ostream<60> Name; - Name << Prefix << "JTI" << getFunctionNumber() << '_' << JTI; + SmallString<60> Name; + raw_svector_ostream(Name) + << Prefix << "JTI" << getFunctionNumber() << '_' << JTI; return Ctx.GetOrCreateSymbol(Name.str()); }