[svn r267] Fixed debug info for global variables.

Cleaned up the debug info code in general.
This commit is contained in:
Tomas Lindquist Olsen 2008-06-11 20:53:26 +02:00
parent 9dc26ff388
commit 4d2797526d
8 changed files with 159 additions and 163 deletions

View file

@ -539,7 +539,7 @@ void DtoDefineFunc(FuncDeclaration* fd)
// debug info
if (global.params.symdebug) {
Module* mo = fd->getModule();
fd->ir.irFunc->dwarfSubProg = DtoDwarfSubProgram(fd, DtoDwarfCompileUnit(mo));
fd->ir.irFunc->dwarfSubProg = DtoDwarfSubProgram(fd);
}
Type* t = DtoDType(fd->type);