Mercurial > projects > ldc
diff gen/functions.cpp @ 139:0ab29b838084 trunk
[svn r143] Fixed: a few bugs in debug information, still only line info, but should be correct files now :)
Fixed: tango.io.Console seems to be working now.
author | lindquist |
---|---|
date | Tue, 22 Jan 2008 00:01:16 +0100 |
parents | ce7b81fb957f |
children | a27941d00351 |
line wrap: on
line diff
--- a/gen/functions.cpp Fri Jan 18 20:13:19 2008 +0100 +++ b/gen/functions.cpp Tue Jan 22 00:01:16 2008 +0100 @@ -459,10 +459,7 @@ // debug info if (global.params.symdebug) { Module* mo = fd->getModule(); - if (!mo->llvmCompileUnit) { - mo->llvmCompileUnit = DtoDwarfCompileUnit(mo,false); - } - fd->irFunc->dwarfSubProg = DtoDwarfSubProgram(fd, mo->llvmCompileUnit); + fd->irFunc->dwarfSubProg = DtoDwarfSubProgram(fd, DtoDwarfCompileUnit(mo)); } Type* t = DtoDType(fd->type);