Mercurial > projects > ldc
diff gen/d-asm-i386.h @ 234:9760f54af0b7 trunk
[svn r250] Fixed the warning about dropping arguments to _Dmain when optimizing.
Did a few cleanups in inline asm code.
author | lindquist |
---|---|
date | Sun, 08 Jun 2008 08:03:19 +0200 |
parents | 092468448d25 |
children | fa691b1c0498 |
line wrap: on
line diff
--- a/gen/d-asm-i386.h Sun Jun 08 06:45:54 2008 +0200 +++ b/gen/d-asm-i386.h Sun Jun 08 08:03:19 2008 +0200 @@ -1408,12 +1408,12 @@ void addOperand(const char * fmt, AsmArgType type, Expression * e, AsmCode * asmcode, AsmArgMode mode = Mode_Input) { insnTemplate->writestring((char*) fmt); - insnTemplate->printf("<<<%s%d>>>", (mode==Mode_Input)?"in":"out", asmcode->args.dim); + insnTemplate->printf("<<%s%d>>", (mode==Mode_Input)?"in":"out", asmcode->args.dim); asmcode->args.push( new AsmArg(type, e, mode) ); } void addOperand2(const char * fmtpre, const char * fmtpost, AsmArgType type, Expression * e, AsmCode * asmcode, AsmArgMode mode = Mode_Input) { insnTemplate->writestring((char*) fmtpre); - insnTemplate->printf("<<<%s%d>>>", (mode==Mode_Input)?"in":"out", asmcode->args.dim); + insnTemplate->printf("<<%s%d>>", (mode==Mode_Input)?"in":"out", asmcode->args.dim); insnTemplate->writestring((char*) fmtpost); asmcode->args.push( new AsmArg(type, e, mode) ); } @@ -1427,7 +1427,7 @@ } void addLabel(char* id) { - insnTemplate->writestring(".LDASM"); + insnTemplate->writestring(".LDASM_"); insnTemplate->writestring(id); }