diff options
author | Devang Patel <dpatel@apple.com> | 2010-01-29 18:11:03 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-01-29 18:11:03 +0000 |
commit | 92e25415995dc21664be78d9a47027792adf1c41 (patch) | |
tree | 741dfde766ebb58b21d8d10dea6936beb827ce47 /clang/lib/CodeGen/CGDebugInfo.h | |
parent | aecfa9adf9572afbf86ee612d2e202f7afd356ec (diff) | |
download | bcm5719-llvm-92e25415995dc21664be78d9a47027792adf1c41.tar.gz bcm5719-llvm-92e25415995dc21664be78d9a47027792adf1c41.zip |
Maintain a map of regions (lexical scopes) and use it to find context for a global variable.
llvm-svn: 94817
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index a062b678f4b..9a56a9ab5cd 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -61,6 +61,7 @@ class CGDebugInfo { llvm::DIType BlockLiteralGeneric; std::vector<llvm::TrackingVH<llvm::MDNode> > RegionStack; + llvm::DenseMap<const Decl *, llvm::WeakVH> RegionMap; /// DebugInfoNames - This is a storage for names that are /// constructed on demand. For example, C++ destructors, C++ operators etc.. @@ -172,7 +173,7 @@ private: CGBuilderTy &Builder, CodeGenFunction *CGF); /// getContextDescriptor - Get context info for the decl. - llvm::DIDescriptor getContextDescriptor(const VarDecl *Decl, + llvm::DIDescriptor getContextDescriptor(const Decl *Decl, llvm::DIDescriptor &CU); /// getOrCreateCompileUnit - Get the compile unit from the cache or create a |