diff options
author | Mike Stump <mrs@apple.com> | 2009-05-14 02:03:51 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-05-14 02:03:51 +0000 |
commit | 31f099c8c264dae8392a6b2191cb3e26c88908ae (patch) | |
tree | a10516751741eb167a7af2dabdd1b708f4d49bcc /clang/lib/CodeGen/CGDebugInfo.h | |
parent | 7911002bf9c656cb9ae2a1a61f55a7dd7bc36380 (diff) | |
download | bcm5719-llvm-31f099c8c264dae8392a6b2191cb3e26c88908ae.tar.gz bcm5719-llvm-31f099c8c264dae8392a6b2191cb3e26c88908ae.zip |
Enhance debug information for block literals. Radar 6867696
llvm-svn: 71763
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 1581637f4a3..de655800fa0 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -46,6 +46,9 @@ class CGDebugInfo { // FIXME: Eliminate this map. Be careful of iterator invalidation. std::map<void *, llvm::DIType> TypeCache; + bool BlockLiteralGenericSet; + llvm::DIType BlockLiteralGeneric; + std::vector<llvm::DIDescriptor> RegionStack; /// Helper functions for getOrCreateType. @@ -54,6 +57,7 @@ class CGDebugInfo { llvm::DIType CreateCVRType(QualType Ty, llvm::DICompileUnit U); llvm::DIType CreateType(const TypedefType *Ty, llvm::DICompileUnit U); llvm::DIType CreateType(const PointerType *Ty, llvm::DICompileUnit U); + llvm::DIType CreateType(const BlockPointerType *Ty, llvm::DICompileUnit U); llvm::DIType CreateType(const FunctionType *Ty, llvm::DICompileUnit U); llvm::DIType CreateType(const TagType *Ty, llvm::DICompileUnit U); llvm::DIType CreateType(const RecordType *Ty, llvm::DICompileUnit U); |