diff options
author | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2008-05-08 08:54:20 +0000 |
---|---|---|
committer | Sanjiv Gupta <sanjiv.gupta@microchip.com> | 2008-05-08 08:54:20 +0000 |
commit | e8b9f5b8ea60983c4a74cb8b63879616b914b65a (patch) | |
tree | 12fefe9c0746176f5f7dae2f26a3a6c9aa4bbfe8 /lib/CodeGen/CodeGenModule.h | |
parent | 56cf96b3ea9a0027b29e11c47b90719525c13bc6 (diff) |
Added -g command line options to clang for generating source level debug information. This patch currently enables generation of line number debug information (stoppoints) and region begin/end debug information. The new files CGDebugInfo.h and CGDebugInfo.cpp implements the debug info manager class CGDebugInfo.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | lib/CodeGen/CodeGenModule.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h index e048d59564..8a3069e648 100644 --- a/lib/CodeGen/CodeGenModule.h +++ b/lib/CodeGen/CodeGenModule.h @@ -43,7 +43,8 @@ namespace clang { namespace CodeGen { class CodeGenFunction; - + class CGDebugInfo; + /// CodeGenModule - This class organizes the cross-module state that is used /// while generating LLVM code. class CodeGenModule { @@ -54,6 +55,7 @@ class CodeGenModule { Diagnostic &Diags; CodeGenTypes Types; CGObjCRuntime *Runtime; + CGDebugInfo *DebugInfo; llvm::Function *MemCpyFn; llvm::Function *MemSetFn; @@ -70,10 +72,12 @@ class CodeGenModule { std::vector<llvm::Function *> BuiltinFunctions; public: CodeGenModule(ASTContext &C, const LangOptions &Features, llvm::Module &M, - const llvm::TargetData &TD, Diagnostic &Diags); + const llvm::TargetData &TD, Diagnostic &Diags, + bool GenerateDebugInfo); ~CodeGenModule(); CGObjCRuntime *getObjCRuntime() { return Runtime; } + CGDebugInfo *getDebugInfo() { return DebugInfo; } ASTContext &getContext() const { return Context; } const LangOptions &getLangOptions() const { return Features; } llvm::Module &getModule() const { return TheModule; } |