Mercurial > projects > ldc
comparison gen/statements.cpp @ 304:3ebc136702dd trunk
[svn r325] Removed dead code.
Added license info to code from GDC (David Friedman permitted us to use the files under the Artistic License).
Added asmLabel check to DtoGoto to avoid jumping into inline asm. Doesn't work currently as LabelDsymbol::asmLabel is never set to true.
author | ChristianK |
---|---|
date | Wed, 25 Jun 2008 23:42:38 +0200 |
parents | bef811104734 |
children | 2b72433d5c8c |
comparison
equal
deleted
inserted
replaced
303:4aa2b6753059 | 304:3ebc136702dd |
---|---|
1043 | 1043 |
1044 // if it's an inline asm label, we don't create a basicblock, just emit it in the asm | 1044 // if it's an inline asm label, we don't create a basicblock, just emit it in the asm |
1045 if (p->asmBlock) | 1045 if (p->asmBlock) |
1046 { | 1046 { |
1047 IRAsmStmt* a = new IRAsmStmt; | 1047 IRAsmStmt* a = new IRAsmStmt; |
1048 // a->code = ".LDASM_"; | |
1049 a->code += ident->toChars(); | 1048 a->code += ident->toChars(); |
1050 a->code += ":"; | 1049 a->code += ":"; |
1051 p->asmBlock->s.push_back(a); | 1050 p->asmBlock->s.push_back(a); |
1052 p->asmBlock->internalLabels.push_back(ident); | 1051 p->asmBlock->internalLabels.push_back(ident); |
1053 } | 1052 } |