diff options
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.h')
-rw-r--r-- | clang/lib/CodeGen/CGDebugInfo.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.h b/clang/lib/CodeGen/CGDebugInfo.h index 4e6626fc4d9..3e7835a2d07 100644 --- a/clang/lib/CodeGen/CGDebugInfo.h +++ b/clang/lib/CodeGen/CGDebugInfo.h @@ -30,11 +30,13 @@ namespace llvm { class DebugInfoDesc; class Value; class TypeDesc; + class VariableDesc; class SubprogramDesc; } namespace clang { class FunctionDecl; + class VarDecl; namespace CodeGen { class CodeGenModule; @@ -61,7 +63,8 @@ private: llvm::Function *RegionEndFn; llvm::AnchorDesc *CompileUnitAnchor; llvm::AnchorDesc *SubprogramAnchor; - std::vector<llvm::DebugInfoDesc *> RegionStack; + std::vector<llvm::DebugInfoDesc *> RegionStack; + std::vector<llvm::VariableDesc *> VariableDescList; llvm::SubprogramDesc *Subprogram; /// Helper functions for getOrCreateType. @@ -98,6 +101,10 @@ public: /// EmitRegionEnd - Emit call to llvm.dbg.region.end to indicate end of a /// block. void EmitRegionEnd(llvm::Function *Fn, llvm::IRBuilder &Builder); + + /// EmitDeclare - Emit call to llvm.dbg.declare for a variable declaration. + void EmitDeclare(const VarDecl *decl, unsigned Tag, llvm::Value *AI, + llvm::IRBuilder &Builder); /// getOrCreateCompileUnit - Get the compile unit from the cache or create a /// new one if necessary. |