aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-21 09:06:22 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-21 09:06:22 +0000
commit94fd26de3ae77f29496ca22d5276b2fb71b2311d (patch)
tree4495fec430a59d52f8583796d3714810edd4ee1e /lib/CodeGen/CodeGenModule.cpp
parent1b0771170921b9e752a50ea2cf87814bff92c834 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89548 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--lib/CodeGen/CodeGenModule.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp
index 4a30eedeff..8ba3d32618 100644
--- a/lib/CodeGen/CodeGenModule.cpp
+++ b/lib/CodeGen/CodeGenModule.cpp
@@ -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();
}