Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
138:aeddd4d533b3 | 139:0ab29b838084 |
---|---|
457 LOG_SCOPE; | 457 LOG_SCOPE; |
458 | 458 |
459 // debug info | 459 // debug info |
460 if (global.params.symdebug) { | 460 if (global.params.symdebug) { |
461 Module* mo = fd->getModule(); | 461 Module* mo = fd->getModule(); |
462 if (!mo->llvmCompileUnit) { | 462 fd->irFunc->dwarfSubProg = DtoDwarfSubProgram(fd, DtoDwarfCompileUnit(mo)); |
463 mo->llvmCompileUnit = DtoDwarfCompileUnit(mo,false); | |
464 } | |
465 fd->irFunc->dwarfSubProg = DtoDwarfSubProgram(fd, mo->llvmCompileUnit); | |
466 } | 463 } |
467 | 464 |
468 Type* t = DtoDType(fd->type); | 465 Type* t = DtoDType(fd->type); |
469 TypeFunction* f = (TypeFunction*)t; | 466 TypeFunction* f = (TypeFunction*)t; |
470 assert(f->llvmType); | 467 assert(f->llvmType); |