diff options
author | John McCall <rjmccall@apple.com> | 2009-09-05 00:15:47 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2009-09-05 00:15:47 +0000 |
commit | 7da2431c23ef1ee8acb114e39692246e1801afc2 (patch) | |
tree | 093cb246a8bbcabd5beb9ae84dcfb9f3982665d4 /lib/CodeGen/CGDebugInfo.cpp | |
parent | d0e3daf2b980b505e535d35b432c938c6d0208ef (diff) |
Basic support for representing elaborated type specifiers
directly in the AST. The current thinking is to create these
only in C++ mode for efficiency. But for now, they're not being
created at all; patch to follow.
This will let us do things like verify that tags match during
template instantation, as well as signal that an elaborated type
specifier was used for clients that actually care.
Optimally, the TypeLoc hierarchy should be adjusted to carry tag
location information as well.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81057 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 c4759b965c..e53f1fa525 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -792,6 +792,9 @@ llvm::DIType CGDebugInfo::getOrCreateType(QualType Ty, case Type::FunctionProto: case Type::FunctionNoProto: return Slot = CreateType(cast<FunctionType>(Ty), Unit); + case Type::Elaborated: + return Slot = getOrCreateType(cast<ElaboratedType>(Ty)->getUnderlyingType(), + Unit); case Type::ConstantArray: case Type::ConstantArrayWithExpr: |