aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-11-06 18:45:16 +0000
committerAnders Carlsson <andersca@mac.com>2009-11-06 18:45:16 +0000
commitba397fe24468fae6cb46f259a3f946770163bfe2 (patch)
tree183734e5cfe30ab0bfdda92acae35ab133af04f4 /lib/CodeGen/CGDebugInfo.cpp
parentafb32f721a416e7a96f0fa3f05a9a363a67507dc (diff)
Handle QualifiedNameType and SubstTemplateTypeParmType types in CGDebugInfo::CreateTypeNode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index c772a006f5..e7e581b00a 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -879,6 +879,17 @@ llvm::DIType CGDebugInfo::CreateTypeNode(QualType Ty,
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);
+ }
+
}
}