diff options
author | Devang Patel <dpatel@apple.com> | 2009-10-06 00:35:31 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-10-06 00:35:31 +0000 |
commit | 979ec2e5ee9e1a648e13c35510bb1cd437f90d24 (patch) | |
tree | 61a01e92363020348a5a1be6d45eb7f0d5cd6895 /lib/CodeGen/CGDebugInfo.h | |
parent | 56fc0d18caf9c829647a5e3ce35197f0d7e0feee (diff) |
Set appropriate context for a global variable while emitting debug info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83352 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.h b/lib/CodeGen/CGDebugInfo.h index 17237ddfc6..ff8ec0574c 100644 --- a/lib/CodeGen/CGDebugInfo.h +++ b/lib/CodeGen/CGDebugInfo.h @@ -131,6 +131,9 @@ private: void EmitDeclare(const BlockDeclRefExpr *BDRE, unsigned Tag, llvm::Value *AI, CGBuilderTy &Builder, CodeGenFunction *CGF); + /// getContext - Get context info for the decl. + llvm::DIDescriptor getContext(const VarDecl *Decl,llvm::DIDescriptor &CU); + /// getOrCreateCompileUnit - Get the compile unit from the cache or create a /// new one if necessary. llvm::DICompileUnit getOrCreateCompileUnit(SourceLocation Loc); |