comparison gen/llvmhelpers.h @ 1160:7d28dcbff23e

Reenable error for gotos into or out of finally blocks.
author Christian Kamm <kamm incasoftware de>
date Sat, 28 Mar 2009 19:16:53 +0100
parents 521dd1626d76
children 8baf611f0009
comparison
equal deleted inserted replaced
1159:c6d6a68bb5db 1160:7d28dcbff23e
43 // assertion generator 43 // assertion generator
44 void DtoAssert(Module* M, Loc loc, DValue* msg); 44 void DtoAssert(Module* M, Loc loc, DValue* msg);
45 45
46 // return the LabelStatement from the current function with the given identifier or NULL if not found 46 // return the LabelStatement from the current function with the given identifier or NULL if not found
47 LabelStatement* DtoLabelStatement(Identifier* ident); 47 LabelStatement* DtoLabelStatement(Identifier* ident);
48 // emit goto 48
49 void DtoGoto(Loc loc, Identifier* target); 49 /// emits goto to LabelStatement with the target identifier
50 /// the sourceFinally is only used for error checking
51 void DtoGoto(Loc loc, Identifier* target, TryFinallyStatement* sourceFinally);
50 52
51 // Generates IR for enclosing handlers between the current state and 53 // Generates IR for enclosing handlers between the current state and
52 // the scope created by the 'target' statement. 54 // the scope created by the 'target' statement.
53 void DtoEnclosingHandlers(Loc loc, Statement* target); 55 void DtoEnclosingHandlers(Loc loc, Statement* target);
54 56