comparison gen/functions.cpp @ 837:331a176c1f4f

Removed error on naked, not fully complete, but I'll be doing more work on it during this Christmas, and some things do work. Fixed taking delegate of final class method. see mini/delegate3.d.
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Tue, 09 Dec 2008 14:07:30 +0100
parents 504a21e81a46
children 94ba810ea2b0
comparison
equal deleted inserted replaced
836:14c3319ac1bb 837:331a176c1f4f
626 assert(fd->ir.declared); 626 assert(fd->ir.declared);
627 627
628 Logger::println("DtoDefineFunc(%s): %s", fd->toPrettyChars(), fd->loc.toChars()); 628 Logger::println("DtoDefineFunc(%s): %s", fd->toPrettyChars(), fd->loc.toChars());
629 LOG_SCOPE; 629 LOG_SCOPE;
630 630
631 // error on naked
632 if (fd->naked)
633 {
634 fd->error("naked is not supported");
635 fatal();
636 }
637
638 // debug info 631 // debug info
639 if (global.params.symdebug) { 632 if (global.params.symdebug) {
640 Module* mo = fd->getModule(); 633 Module* mo = fd->getModule();
641 fd->ir.irFunc->dwarfSubProg = DtoDwarfSubProgram(fd); 634 fd->ir.irFunc->dwarfSubProg = DtoDwarfSubProgram(fd);
642 } 635 }