diff options
| author | Eric Christopher <echristo@apple.com> | 2011-12-16 23:40:18 +0000 |
|---|---|---|
| committer | Eric Christopher <echristo@apple.com> | 2011-12-16 23:40:18 +0000 |
| commit | cd88813dbfbb9d3e57803d17f702e65af94979e4 (patch) | |
| tree | 101d8fa528370bae7692ee3a8e85bf44877ba308 /clang/lib/CodeGen/CGDebugInfo.h | |
| parent | ea225fb41269eb0a8c6bcb1f7778d23a8881c526 (diff) | |
| download | bcm5719-llvm-cd88813dbfbb9d3e57803d17f702e65af94979e4.tar.gz bcm5719-llvm-cd88813dbfbb9d3e57803d17f702e65af94979e4.zip | |
When in a limited debug information situation if we can find the original
declaration for the type then go ahead and use that, it's still smaller
than creating an all new derived type.
Part of rdar://10335756 and others.
llvm-svn: 146779
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
| -rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 087cdd08a49..8831c535fa4 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -93,6 +93,7 @@ class CGDebugInfo { llvm::DIType CreateType(const MemberPointerType *Ty, llvm::DIFile F); llvm::DIType CreateType(const AtomicType *Ty, llvm::DIFile F); llvm::DIType CreateEnumType(const EnumDecl *ED); + llvm::DIType getTypeOrNull(const QualType); llvm::DIType getOrCreateMethodType(const CXXMethodDecl *Method, llvm::DIFile F); llvm::DIType getOrCreateFunctionType(const Decl *D, QualType FnType, |

