diff gen/functions.cpp @ 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 d61ce72c39ab
children 8187884566fa
line wrap: on
line diff
--- a/gen/functions.cpp	Tue Jun 10 21:44:04 2008 +0200
+++ b/gen/functions.cpp	Wed Jun 11 20:53:26 2008 +0200
@@ -539,7 +539,7 @@
     // 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);