summaryrefslogtreecommitdiffstats
path: root/clang/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
commite128dd18ab472003fd9df2966de7b168892f91a8 (patch)
treeaff1a763afc6db2c01a69f8a6878e33041bb4cac /clang/lib/CodeGen/CodeGenModule.cpp
parentef5d75afebbe3d45908e7bc8954dee6d8027fa0f (diff)
downloadbcm5719-llvm-e128dd18ab472003fd9df2966de7b168892f91a8.tar.gz
bcm5719-llvm-e128dd18ab472003fd9df2966de7b168892f91a8.zip
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
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 4a30eedeff8..8ba3d326189 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/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();
}
OpenPOWER on IntegriCloud