[cfe-commits] r86274 - in /cfe/trunk: lib/CodeGen/CGDebugInfo.cpp test/CodeGenCXX/debug-info.cpp
Anders Carlsson
andersca at mac.com
Fri Nov 6 10:45:16 PST 2009
Author: andersca
Date: Fri Nov 6 12:45:16 2009
New Revision: 86274
URL: http://llvm.org/viewvc/llvm-project?rev=86274&view=rev
Log:
Handle QualifiedNameType and SubstTemplateTypeParmType types in CGDebugInfo::CreateTypeNode.
Added:
cfe/trunk/test/CodeGenCXX/debug-info.cpp
Modified:
cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
Modified: cfe/trunk/lib/CodeGen/CGDebugInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGDebugInfo.cpp?rev=86274&r1=86273&r2=86274&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGDebugInfo.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGDebugInfo.cpp Fri Nov 6 12:45:16 2009
@@ -879,6 +879,17 @@
return getOrCreateType(cast<TypeOfType>(Ty)->getUnderlyingType(), Unit);
case Type::Decltype:
return getOrCreateType(cast<DecltypeType>(Ty)->getUnderlyingType(), Unit);
+
+ case Type::QualifiedName: {
+ const QualifiedNameType *T = cast<QualifiedNameType>(Ty);
+ return CreateTypeNode(T->getNamedType(), Unit);
+ }
+
+ case Type::SubstTemplateTypeParm: {
+ const SubstTemplateTypeParmType *T = cast<SubstTemplateTypeParmType>(Ty);
+ return CreateTypeNode(T->getReplacementType(), Unit);
+ }
+
}
}
Added: cfe/trunk/test/CodeGenCXX/debug-info.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/debug-info.cpp?rev=86274&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/debug-info.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/debug-info.cpp Fri Nov 6 12:45:16 2009
@@ -0,0 +1,6 @@
+// RUN: clang-cc -emit-llvm-only -g
+template<typename T> struct Identity {
+ typedef T Type;
+};
+
+void f(Identity<int>::Type a) {}
More information about the cfe-commits
mailing list