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:
Daniel Dunbar
2009-11-21 09:06:22 +00:00
parent ef5d75afeb
commit e128dd18ab
6 changed files with 67 additions and 96 deletions

View File

@@ -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();
}