summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2009-12-04 22:46:56 +0000
committerJohn McCall <rjmccall@apple.com>2009-12-04 22:46:56 +0000
commitb96ec568715450106b4f1dd4a20c1c14e9bca6c4 (patch)
tree19500320eb1cc921c8936202a066855f39921959 /clang/lib/CodeGen
parent9e2792690bd41191442cf3a65ad591a32ee9ab10 (diff)
downloadbcm5719-llvm-b96ec568715450106b4f1dd4a20c1c14e9bca6c4.tar.gz
bcm5719-llvm-b96ec568715450106b4f1dd4a20c1c14e9bca6c4.zip
Fix "using typename" and the instantiation of non-dependent using declarations.
llvm-svn: 90614
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/Mangle.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/Mangle.cpp b/clang/lib/CodeGen/Mangle.cpp
index 4d021e8964c..df708eda9cb 100644
--- a/clang/lib/CodeGen/Mangle.cpp
+++ b/clang/lib/CodeGen/Mangle.cpp
@@ -843,6 +843,12 @@ void CXXNameMangler::mangleBareFunctionType(const FunctionType *T,
// <type> ::= <class-enum-type>
// <class-enum-type> ::= <name>
+void CXXNameMangler::mangleType(const UnresolvedUsingType *T) {
+ mangleName(T->getDecl());
+}
+
+// <type> ::= <class-enum-type>
+// <class-enum-type> ::= <name>
void CXXNameMangler::mangleType(const EnumType *T) {
mangleType(static_cast<const TagType*>(T));
}
OpenPOWER on IntegriCloud