Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
945:03d7c4aac654 | 946:1714836f2c0b |
---|---|
6 /** | 6 /** |
7 * Emit the Dwarf compile_unit global for a Module m. | 7 * Emit the Dwarf compile_unit global for a Module m. |
8 * @param m | 8 * @param m |
9 * @return the Dwarf compile_unit. | 9 * @return the Dwarf compile_unit. |
10 */ | 10 */ |
11 llvm::GlobalVariable* DtoDwarfCompileUnit(Module* m); | 11 llvm::DICompileUnit DtoDwarfCompileUnit(Module* m); |
12 | 12 |
13 /** | 13 /** |
14 * Emit the Dwarf subprogram global for a function declaration fd. | 14 * Emit the Dwarf subprogram global for a function declaration fd. |
15 * @param fd | 15 * @param fd |
16 * @return the Dwarf subprogram global. | 16 * @return the Dwarf subprogram global. |
17 */ | 17 */ |
18 llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd); | 18 llvm::DISubprogram DtoDwarfSubProgram(FuncDeclaration* fd); |
19 | 19 |
20 /** | 20 /** |
21 * Emit the Dwarf subprogram global for a internal function. | 21 * Emit the Dwarf subprogram global for a internal function. |
22 * This is used for generated functions like moduleinfoctors, | 22 * This is used for generated functions like moduleinfoctors, |
23 * module ctors/dtors and unittests. | 23 * module ctors/dtors and unittests. |
24 * @return the Dwarf subprogram global. | 24 * @return the Dwarf subprogram global. |
25 */ | 25 */ |
26 llvm::GlobalVariable* DtoDwarfSubProgramInternal(const char* prettyname, const char* mangledname); | 26 llvm::DISubprogram DtoDwarfSubProgramInternal(const char* prettyname, const char* mangledname); |
27 | 27 |
28 void DtoDwarfFuncStart(FuncDeclaration* fd); | 28 void DtoDwarfFuncStart(FuncDeclaration* fd); |
29 void DtoDwarfFuncEnd(FuncDeclaration* fd); | 29 void DtoDwarfFuncEnd(FuncDeclaration* fd); |
30 | 30 |
31 void DtoDwarfStopPoint(unsigned ln); | 31 void DtoDwarfStopPoint(unsigned ln); |
41 * Emits all things necessary for making debug info for a global variable vd. | 41 * Emits all things necessary for making debug info for a global variable vd. |
42 * @param ll | 42 * @param ll |
43 * @param vd | 43 * @param vd |
44 * @return | 44 * @return |
45 */ | 45 */ |
46 LLGlobalVariable* DtoDwarfGlobalVariable(LLGlobalVariable* ll, VarDeclaration* vd); | 46 llvm::DIGlobalVariable DtoDwarfGlobalVariable(LLGlobalVariable* ll, VarDeclaration* vd); |
47 | 47 |
48 #endif // LDC_GEN_TODEBUG_H | 48 #endif // LDC_GEN_TODEBUG_H |
49 | 49 |
50 | 50 |