comparison gen/irstate.h @ 311:9967a3270837 trunk

[svn r332] Fix codegen for continue within switch.
author ChristianK
date Sat, 28 Jun 2008 18:37:27 +0200
parents d59c363fccad
children 8d98e42ece93
comparison
equal deleted inserted replaced
310:d20cf0dec9c1 311:9967a3270837
43 { 43 {
44 // generating statement 44 // generating statement
45 Statement* s; 45 Statement* s;
46 // the try of a TryFinally that encloses the loop 46 // the try of a TryFinally that encloses the loop
47 EnclosingHandler* enclosinghandler; 47 EnclosingHandler* enclosinghandler;
48 // if it is a switch, we are a possible target for break
49 // but not for continue
50 bool isSwitch;
48 51
49 IRLoopScope(); 52 IRLoopScope();
50 IRLoopScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* b, llvm::BasicBlock* e); 53 IRLoopScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* b, llvm::BasicBlock* e, bool isSwitch = false);
51 }; 54 };
52 55
53 struct IRBuilderHelper 56 struct IRBuilderHelper
54 { 57 {
55 IRState* state; 58 IRState* state;