diff options
author | John McCall <rjmccall@apple.com> | 2011-01-06 01:58:22 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2011-01-06 01:58:22 +0000 |
commit | 9d156a7b1b2771e191f2f5a45a7b7a694129463b (patch) | |
tree | ba0cb32820bd4acde7f0cdd7465c909cbffbf281 /lib/CodeGen/CGDebugInfo.cpp | |
parent | b7ec67a43d0b5408d6a97e92240207b5a2374456 (diff) |
Introduce an AttributedType, but don't actually use it anywhere yet.
The initial TreeTransform is a cop-out, but it's more-or-less equivalent
to what we were doing before, or rather what we're doing now and might
eventually stop doing in favor of using this type.
I am simultaneously intrigued by the possibilities of rebuilding a
dependent Attri
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@122942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 615972afbc..37a88efcc4 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -1324,6 +1324,8 @@ static QualType UnwrapTypeForDebugInfo(QualType T) { case Type::Decltype: T = cast<DecltypeType>(T)->getUnderlyingType(); break; + case Type::Attributed: + T = cast<AttributedType>(T)->getEquivalentType(); case Type::Elaborated: T = cast<ElaboratedType>(T)->getNamedType(); break; @@ -1423,6 +1425,7 @@ llvm::DIType CGDebugInfo::CreateTypeNode(QualType Ty, case Type::MemberPointer: return CreateType(cast<MemberPointerType>(Ty), Unit); + case Type::Attributed: case Type::TemplateSpecialization: case Type::Elaborated: case Type::Paren: |