Mercurial > projects > ldc
comparison gen/functions.cpp @ 546:406aee3416bb
Removed D_InlineAsm and D_InlineAsm_X86 versions.
Made use of 'naked' in inline asm an error.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 25 Aug 2008 19:36:27 +0200 |
parents | cecfee2d01a8 |
children | fbb1a366cfbc |
comparison
equal
deleted
inserted
replaced
545:a42610460308 | 546:406aee3416bb |
---|---|
536 assert(fd->ir.declared); | 536 assert(fd->ir.declared); |
537 | 537 |
538 Logger::println("DtoDefineFunc(%s): %s", fd->toPrettyChars(), fd->loc.toChars()); | 538 Logger::println("DtoDefineFunc(%s): %s", fd->toPrettyChars(), fd->loc.toChars()); |
539 LOG_SCOPE; | 539 LOG_SCOPE; |
540 | 540 |
541 // warn about naked | 541 // error on naked |
542 if (fd->naked) | 542 if (fd->naked) |
543 { | 543 { |
544 warning("%s: naked is currently ignored", fd->locToChars()); | 544 fd->error("naked is not supported"); |
545 fatal(); | |
545 } | 546 } |
546 | 547 |
547 // debug info | 548 // debug info |
548 if (global.params.symdebug) { | 549 if (global.params.symdebug) { |
549 Module* mo = fd->getModule(); | 550 Module* mo = fd->getModule(); |