Mercurial > projects > ldc
comparison dmd2/statement.c @ 953:5fa3e0ea06e9
Merged a bunch recent dmd v1 frontend changes into the dmd v2 tree.
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Fri, 13 Feb 2009 22:20:30 +0100 |
parents | 03d7c4aac654 |
children | 638d16625da2 |
comparison
equal
deleted
inserted
replaced
952:29da57670853 | 953:5fa3e0ea06e9 |
---|---|
2196 VarExp *v = new VarExp(0, match); | 2196 VarExp *v = new VarExp(0, match); |
2197 condition = new AssignExp(loc, v, condition); | 2197 condition = new AssignExp(loc, v, condition); |
2198 condition = condition->semantic(scd); | 2198 condition = condition->semantic(scd); |
2199 } | 2199 } |
2200 | 2200 |
2201 // LDC | |
2202 else if (ident == Id::allow_inline) | |
2203 { | |
2204 sc->func->allowInlining = true; | |
2205 } | |
2206 | |
2207 else | 2201 else |
2208 scd = sc->push(); | 2202 scd = sc->push(); |
2209 ifbody = ifbody->semantic(scd); | 2203 ifbody = ifbody->semantic(scd); |
2210 scd->pop(); | 2204 scd->pop(); |
2211 | 2205 |
2476 body = body->semantic(sc); | 2470 body = body->semantic(sc); |
2477 } | 2471 } |
2478 return this; | 2472 return this; |
2479 } | 2473 } |
2480 } | 2474 } |
2475 | |
2476 // LDC | |
2477 else if (ident == Id::allow_inline) | |
2478 { | |
2479 sc->func->allowInlining = true; | |
2480 } | |
2481 | |
2481 else | 2482 else |
2482 error("unrecognized pragma(%s)", ident->toChars()); | 2483 error("unrecognized pragma(%s)", ident->toChars()); |
2483 | 2484 |
2484 if (body) | 2485 if (body) |
2485 { | 2486 { |