Mercurial > projects > ldc
comparison gen/d-asm-i386.h @ 302:bef811104734 trunk
[svn r323] Branching out of inline asm works.
Renamed emit_finallyblocks to DtoFinallyBlocks and moved to llvmhelpers.
Added enclosingtryfinally to AsmBlockStatement, so branches out of asm blocks respect finallys.
Refactored some GotoStatement code into DtoGoto.
author | ChristianK |
---|---|
date | Wed, 25 Jun 2008 20:39:09 +0200 |
parents | df8a7b8d5929 |
children | 3ebc136702dd |
comparison
equal
deleted
inserted
replaced
301:f42a1090e895 | 302:bef811104734 |
---|---|
1913 LabelDsymbol * lbl = (LabelDsymbol *) ((DsymbolExp *) e)->s; | 1913 LabelDsymbol * lbl = (LabelDsymbol *) ((DsymbolExp *) e)->s; |
1914 // this can probably be removed | 1914 // this can probably be removed |
1915 if (! lbl->asmLabelNum) | 1915 if (! lbl->asmLabelNum) |
1916 lbl->asmLabelNum = ++d_priv_asm_label_serial; | 1916 lbl->asmLabelNum = ++d_priv_asm_label_serial; |
1917 | 1917 |
1918 stmt->isBranchToLabel = lbl->ident; | 1918 stmt->isBranchToLabel = lbl; |
1919 | 1919 |
1920 use_star = false; | 1920 use_star = false; |
1921 addLabel(lbl->ident->toChars()); | 1921 addLabel(lbl->ident->toChars()); |
1922 } else if ((decl && decl->isCodeseg())) { // if function or label | 1922 } else if ((decl && decl->isCodeseg())) { // if function or label |
1923 use_star = false; | 1923 use_star = false; |