diff 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
line wrap: on
line diff
--- a/gen/llvmhelpers.h	Sat Mar 28 14:39:16 2009 +0100
+++ b/gen/llvmhelpers.h	Sat Mar 28 19:16:53 2009 +0100
@@ -45,8 +45,10 @@
 
 // return the LabelStatement from the current function with the given identifier or NULL if not found
 LabelStatement* DtoLabelStatement(Identifier* ident);
-// emit goto
-void DtoGoto(Loc loc, Identifier* target);
+
+/// emits goto to LabelStatement with the target identifier
+/// the sourceFinally is only used for error checking
+void DtoGoto(Loc loc, Identifier* target, TryFinallyStatement* sourceFinally);
 
 // Generates IR for enclosing handlers between the current state and
 // the scope created by the 'target' statement.