Mercurial > projects > ldc
comparison gen/todebug.h @ 686:363bb6c0cc80
Emit stub debug info for generated functions to work around LLVM bug 2172.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 12 Oct 2008 14:38:55 +0200 |
parents | eef8ac26c66c |
children | 1714836f2c0b |
comparison
equal
deleted
inserted
replaced
685:8d7e58801c82 | 686:363bb6c0cc80 |
---|---|
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::GlobalVariable* DtoDwarfSubProgram(FuncDeclaration* fd); |
19 | |
20 /** | |
21 * Emit the Dwarf subprogram global for a internal function. | |
22 * This is used for generated functions like moduleinfoctors, | |
23 * module ctors/dtors and unittests. | |
24 * @return the Dwarf subprogram global. | |
25 */ | |
26 llvm::GlobalVariable* DtoDwarfSubProgramInternal(const char* prettyname, const char* mangledname); | |
19 | 27 |
20 void DtoDwarfFuncStart(FuncDeclaration* fd); | 28 void DtoDwarfFuncStart(FuncDeclaration* fd); |
21 void DtoDwarfFuncEnd(FuncDeclaration* fd); | 29 void DtoDwarfFuncEnd(FuncDeclaration* fd); |
22 | 30 |
23 void DtoDwarfStopPoint(unsigned ln); | 31 void DtoDwarfStopPoint(unsigned ln); |