mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 23:20:40 +03:00
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.
This commit is contained in:
parent
fc480b7fd8
commit
7c93355672
17 changed files with 250 additions and 389 deletions
|
@ -647,7 +647,7 @@ void DtoDefineFunction(FuncDeclaration* fd)
|
|||
// debug info
|
||||
if (global.params.symdebug) {
|
||||
Module* mo = fd->getModule();
|
||||
fd->ir.irFunc->dwarfSubProg = DtoDwarfSubProgram(fd);
|
||||
fd->ir.irFunc->diSubprogram = DtoDwarfSubProgram(fd);
|
||||
}
|
||||
|
||||
Type* t = fd->type->toBasetype();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue