Mercurial > projects > ldc
comparison gen/irstate.cpp @ 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 | a9697749e898 |
comparison
equal
deleted
inserted
replaced
310:d20cf0dec9c1 | 311:9967a3270837 |
---|---|
34 ////////////////////////////////////////////////////////////////////////////////////////// | 34 ////////////////////////////////////////////////////////////////////////////////////////// |
35 IRLoopScope::IRLoopScope() | 35 IRLoopScope::IRLoopScope() |
36 { | 36 { |
37 } | 37 } |
38 | 38 |
39 IRLoopScope::IRLoopScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* b, llvm::BasicBlock* e) | 39 IRLoopScope::IRLoopScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* b, llvm::BasicBlock* e, bool isSwitch) |
40 { | 40 { |
41 begin = b; | 41 begin = b; |
42 end = e; | 42 end = e; |
43 //builder.SetInsertPoint(b); | 43 //builder.SetInsertPoint(b); |
44 this->s = s; | 44 this->s = s; |
45 this->enclosinghandler = enclosinghandler; | 45 this->enclosinghandler = enclosinghandler; |
46 this->isSwitch = isSwitch; | |
46 } | 47 } |
47 | 48 |
48 ////////////////////////////////////////////////////////////////////////////////////////// | 49 ////////////////////////////////////////////////////////////////////////////////////////// |
49 IRState::IRState() | 50 IRState::IRState() |
50 { | 51 { |