comparison 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
comparison
equal deleted inserted replaced
249:fa9fef362a98 250:fc9c1a0eabbd
537 LOG_SCOPE; 537 LOG_SCOPE;
538 538
539 // debug info 539 // debug info
540 if (global.params.symdebug) { 540 if (global.params.symdebug) {
541 Module* mo = fd->getModule(); 541 Module* mo = fd->getModule();
542 fd->ir.irFunc->dwarfSubProg = DtoDwarfSubProgram(fd, DtoDwarfCompileUnit(mo)); 542 fd->ir.irFunc->dwarfSubProg = DtoDwarfSubProgram(fd);
543 } 543 }
544 544
545 Type* t = DtoDType(fd->type); 545 Type* t = DtoDType(fd->type);
546 TypeFunction* f = (TypeFunction*)t; 546 TypeFunction* f = (TypeFunction*)t;
547 assert(f->ir.type); 547 assert(f->ir.type);