summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/Mangle.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-09-05 06:31:47 +0000
committerJohn McCall <rjmccall@apple.com>2009-09-05 06:31:47 +0000
commitb2e195a585adc59c496d80c1e40325d80b8a3f69 (patch)
tree32d174c1bb6f428bbb726c0e519c6b5139768de6 /clang/lib/CodeGen/Mangle.cpp
parentd7674a47f948fc2ce62206da33862383f3b811a2 (diff)
downloadbcm5719-llvm-b2e195a585adc59c496d80c1e40325d80b8a3f69.tar.gz
bcm5719-llvm-b2e195a585adc59c496d80c1e40325d80b8a3f69.zip
Start emitting ElaboratedTypes in C++ mode. Support the effort in various
ways: remove elab types during desugaring, enhance pretty-printing to allow tags to be suppressed without suppressing scopes, look through elab types when associating a typedef name with an anonymous record type. llvm-svn: 81065
Diffstat (limited to 'clang/lib/CodeGen/Mangle.cpp')
-rw-r--r--clang/lib/CodeGen/Mangle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp
index b293560ec90..29b4c8a8377 100644
--- a/clang/lib/CodeGen/Mangle.cpp
+++ b/clang/lib/CodeGen/Mangle.cpp
@@ -581,6 +581,9 @@ void CXXNameMangler::mangleType(QualType T) {
} else if (const ObjCInterfaceType *IT =
dyn_cast<ObjCInterfaceType>(T.getTypePtr())) {
mangleType(IT);
+ } else if (const ElaboratedType *ET =
+ dyn_cast<ElaboratedType>(T.getTypePtr())) {
+ mangleType(ET->getUnderlyingType());
}
// FIXME: ::= G <type> # imaginary (C 2000)
// FIXME: ::= U <source-name> <type> # vendor extended type qualifier
OpenPOWER on IntegriCloud