aboutsummaryrefslogtreecommitdiff
path: root/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
commit2191b20bfb31fc0e22a158f6b4204cd0b7dbd0fd (patch)
treef83185278453f6702e0ebee829f34e2cd58b6a4f /lib/CodeGen/Mangle.cpp
parenta2f4ec0df645fc249d2945beef9653f03b175417 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81065 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/Mangle.cpp')
-rw-r--r--lib/CodeGen/Mangle.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/Mangle.cpp b/lib/CodeGen/Mangle.cpp
index b293560ec9..29b4c8a837 100644
--- a/lib/CodeGen/Mangle.cpp
+++ b/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