Mercurial > projects > ldc
diff gen/d-asm-i386.h @ 299:df8a7b8d5929 trunk
[svn r320] Begun work on branches out of asm blocks. Unfinished.
author | ChristianK |
---|---|
date | Tue, 24 Jun 2008 21:38:23 +0200 |
parents | fa691b1c0498 |
children | bef811104734 |
line wrap: on
line diff
--- a/gen/d-asm-i386.h Tue Jun 24 17:24:55 2008 +0200 +++ b/gen/d-asm-i386.h Tue Jun 24 21:38:23 2008 +0200 @@ -1427,7 +1427,7 @@ } void addLabel(char* id) { - insnTemplate->writestring(".LDASM_"); + //insnTemplate->writestring(".LDASM_"); insnTemplate->writestring(id); } @@ -1911,9 +1911,12 @@ asmcode->dollarLabel = lbl_num; // could make the dollar label part of the same asm.. } else if (e->op == TOKdsymbol) { LabelDsymbol * lbl = (LabelDsymbol *) ((DsymbolExp *) e)->s; + // this can probably be removed if (! lbl->asmLabelNum) lbl->asmLabelNum = ++d_priv_asm_label_serial; + stmt->isBranchToLabel = lbl->ident; + use_star = false; addLabel(lbl->ident->toChars()); } else if ((decl && decl->isCodeseg())) { // if function or label