Mercurial > projects > ldc
comparison gen/todebug.h @ 250:fc9c1a0eabbd trunk
[svn r267] Fixed debug info for global variables.
Cleaned up the debug info code in general.
author | lindquist |
---|---|
date | Wed, 11 Jun 2008 20:53:26 +0200 |
parents | 56199753e637 |
children | eef8ac26c66c |
comparison
equal
deleted
inserted
replaced
249:fa9fef362a98 | 250:fc9c1a0eabbd |
---|---|
1 #ifndef LLVMDC_GEN_TODEBUG_H | 1 #ifndef LLVMDC_GEN_TODEBUG_H |
2 #define LLVMDC_GEN_TODEBUG_H | 2 #define LLVMDC_GEN_TODEBUG_H |
3 | 3 |
4 void RegisterDwarfSymbols(llvm::Module* mod); | 4 void RegisterDwarfSymbols(llvm::Module* mod); |
5 | 5 |
6 /** | |
7 * Emit the Dwarf compile_unit global for a Module m. | |
8 * @param m | |
9 * @return the Dwarf compile_unit. | |
10 */ | |
6 llvm::GlobalVariable* DtoDwarfCompileUnit(Module* m); | 11 llvm::GlobalVariable* DtoDwarfCompileUnit(Module* m); |
7 llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd, llvm::GlobalVariable* compileUnit); | 12 |
13 /** | |
14 * Emit the Dwarf subprogram global for a function declaration fd. | |
15 * @param fd | |
16 * @return the Dwarf subprogram global. | |
17 */ | |
18 llvm::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd); | |
8 | 19 |
9 void DtoDwarfFuncStart(FuncDeclaration* fd); | 20 void DtoDwarfFuncStart(FuncDeclaration* fd); |
10 void DtoDwarfFuncEnd(FuncDeclaration* fd); | 21 void DtoDwarfFuncEnd(FuncDeclaration* fd); |
11 | 22 |
12 void DtoDwarfStopPoint(unsigned ln); | 23 void DtoDwarfStopPoint(unsigned ln); |