comparison gen/functions.cpp @ 946:1714836f2c0b

Mostly rewrite debug info generation in terms of llvm/Analysis/DebugInfo.h. Add getCompilationModule to Dsymbol and fix template compile unit decision code. Runtime compiles with -g again.
author Christian Kamm <kamm incasoftware de>
date Sun, 08 Feb 2009 16:50:22 +0100
parents 03d7c4aac654
children 9a10fa839dc5
comparison
equal deleted inserted replaced
945:03d7c4aac654 946:1714836f2c0b
645 } 645 }
646 646
647 // debug info 647 // debug info
648 if (global.params.symdebug) { 648 if (global.params.symdebug) {
649 Module* mo = fd->getModule(); 649 Module* mo = fd->getModule();
650 fd->ir.irFunc->dwarfSubProg = DtoDwarfSubProgram(fd); 650 fd->ir.irFunc->diSubprogram = DtoDwarfSubProgram(fd);
651 } 651 }
652 652
653 Type* t = fd->type->toBasetype(); 653 Type* t = fd->type->toBasetype();
654 TypeFunction* f = (TypeFunction*)t; 654 TypeFunction* f = (TypeFunction*)t;
655 assert(f->ir.type); 655 assert(f->ir.type);