summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorSanjiv Gupta <sanjiv.gupta@microchip.com>2008-05-08 08:54:20 +0000
committerSanjiv Gupta <sanjiv.gupta@microchip.com>2008-05-08 08:54:20 +0000
commit15cb669039cf26cf018460c8a18901f023bcc7dd (patch)
tree983415416e056a3e9da736291994758db590d55f /clang/lib/CodeGen/CodeGenModule.h
parentcd13ef01a21e83d7ee0660bf4994c2c453368d05 (diff)
downloadbcm5719-llvm-15cb669039cf26cf018460c8a18901f023bcc7dd.tar.gz
bcm5719-llvm-15cb669039cf26cf018460c8a18901f023bcc7dd.zip
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.
llvm-svn: 50848
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index e048d595644..8a3069e648b 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/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; }
OpenPOWER on IntegriCloud