summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.h
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-01-29 18:11:03 +0000
committerDevang Patel <dpatel@apple.com>2010-01-29 18:11:03 +0000
commit92e25415995dc21664be78d9a47027792adf1c41 (patch)
tree741dfde766ebb58b21d8d10dea6936beb827ce47 /clang/lib/CodeGen/CGDebugInfo.h
parentaecfa9adf9572afbf86ee612d2e202f7afd356ec (diff)
downloadbcm5719-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.h3
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
OpenPOWER on IntegriCloud