IRgen: Switch the C++ mangler interfaces to take the SmallVector to write into,
instead of requiring clients to make a raw_svector_ostream, which is just an implementation detail. llvm-svn: 89548
This commit is contained in:
@@ -167,8 +167,7 @@ const char *CodeGenModule::getMangledName(const NamedDecl *ND) {
|
||||
}
|
||||
|
||||
llvm::SmallString<256> Name;
|
||||
llvm::raw_svector_ostream Out(Name);
|
||||
if (!getMangleContext().mangleName(ND, Out)) {
|
||||
if (!getMangleContext().mangleName(ND, Name)) {
|
||||
assert(ND->getIdentifier() && "Attempt to mangle unnamed decl.");
|
||||
return ND->getNameAsCString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user