summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-02-23 13:53:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-02-23 13:53:57 +0000
commit24ebf7c92c03ef940c491d25905e7513ef08b20a (patch)
treebbd10a526155be017bce2a2b09d8942c2bc31c1f /clang/lib/CodeGen
parentf2ea19ea2e7f426b0d2de973311464b3e0d3ad2b (diff)
downloadbcm5719-llvm-24ebf7c92c03ef940c491d25905e7513ef08b20a.tar.gz
bcm5719-llvm-24ebf7c92c03ef940c491d25905e7513ef08b20a.zip
Add streamed versions of getQualifiedNameAsString.
Move the cold virtual method getNameForDiagnostic out of line. llvm-svn: 175966
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CodeGenTypes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenTypes.cpp b/clang/lib/CodeGen/CodeGenTypes.cpp
index c82e1d829df..259d10673d8 100644
--- a/clang/lib/CodeGen/CodeGenTypes.cpp
+++ b/clang/lib/CodeGen/CodeGenTypes.cpp
@@ -61,14 +61,14 @@ void CodeGenTypes::addRecordTypeName(const RecordDecl *RD,
// FIXME: We should not have to check for a null decl context here.
// Right now we do it because the implicit Obj-C decls don't have one.
if (RD->getDeclContext())
- OS << RD->getQualifiedNameAsString();
+ RD->printQualifiedName(OS);
else
RD->printName(OS);
} else if (const TypedefNameDecl *TDD = RD->getTypedefNameForAnonDecl()) {
// FIXME: We should not have to check for a null decl context here.
// Right now we do it because the implicit Obj-C decls don't have one.
if (TDD->getDeclContext())
- OS << TDD->getQualifiedNameAsString();
+ TDD->printQualifiedName(OS);
else
TDD->printName(OS);
} else
OpenPOWER on IntegriCloud