Mercurial > projects > ldc
diff gen/todebug.h @ 946:1714836f2c0b
Mostly rewrite debug info generation in terms of llvm/Analysis/DebugInfo.h.
Add getCompilationModule to Dsymbol and fix template compile unit decision code.
Runtime compiles with -g again.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 08 Feb 2009 16:50:22 +0100 |
parents | 363bb6c0cc80 |
children | 40bd4a0d4870 |
line wrap: on
line diff
--- a/gen/todebug.h Sun Feb 08 05:26:54 2009 +0100 +++ b/gen/todebug.h Sun Feb 08 16:50:22 2009 +0100 @@ -8,14 +8,14 @@ * @param m * @return the Dwarf compile_unit. */ -llvm::GlobalVariable* DtoDwarfCompileUnit(Module* m); +llvm::DICompileUnit DtoDwarfCompileUnit(Module* m); /** * Emit the Dwarf subprogram global for a function declaration fd. * @param fd * @return the Dwarf subprogram global. */ -llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd); +llvm::DISubprogram DtoDwarfSubProgram(FuncDeclaration* fd); /** * Emit the Dwarf subprogram global for a internal function. @@ -23,7 +23,7 @@ * module ctors/dtors and unittests. * @return the Dwarf subprogram global. */ -llvm::GlobalVariable* DtoDwarfSubProgramInternal(const char* prettyname, const char* mangledname); +llvm::DISubprogram DtoDwarfSubProgramInternal(const char* prettyname, const char* mangledname); void DtoDwarfFuncStart(FuncDeclaration* fd); void DtoDwarfFuncEnd(FuncDeclaration* fd); @@ -43,7 +43,7 @@ * @param vd * @return */ -LLGlobalVariable* DtoDwarfGlobalVariable(LLGlobalVariable* ll, VarDeclaration* vd); +llvm::DIGlobalVariable DtoDwarfGlobalVariable(LLGlobalVariable* ll, VarDeclaration* vd); #endif // LDC_GEN_TODEBUG_H