projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Introduce a string_ostream string builder facilty"
[oota-llvm.git]
/
lib
/
CodeGen
/
MachineFunction.cpp
diff --git
a/lib/CodeGen/MachineFunction.cpp
b/lib/CodeGen/MachineFunction.cpp
index 20210adf30f331e59ad530497f7541dd3fa273c4..6138aef4adc193231941317bc94b81aa1e75f269 100644
(file)
--- 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();
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());
}
return Ctx.GetOrCreateSymbol(Name.str());
}