Mercurial > projects > ldc
comparison gen/irstate.cpp @ 145:8f704cb9969b trunk
[svn r150] fixes #16 and #17, implements GotoCaseStatement
author | ChristianK |
---|---|
date | Sat, 08 Mar 2008 15:22:07 +0100 |
parents | 0e28624814e8 |
children | 86d3bb8ca33e |
comparison
equal
deleted
inserted
replaced
144:a27941d00351 | 145:8f704cb9969b |
---|---|
26 IRScope::IRScope(llvm::BasicBlock* b, llvm::BasicBlock* e) | 26 IRScope::IRScope(llvm::BasicBlock* b, llvm::BasicBlock* e) |
27 { | 27 { |
28 begin = b; | 28 begin = b; |
29 end = e; | 29 end = e; |
30 builder.SetInsertPoint(b); | 30 builder.SetInsertPoint(b); |
31 } | |
32 | |
33 ////////////////////////////////////////////////////////////////////////////////////////// | |
34 IRLoopScope::IRLoopScope() | |
35 { | |
36 } | |
37 | |
38 IRLoopScope::IRLoopScope(Statement* s, TryFinallyStatement* enclosingtry, llvm::BasicBlock* b, llvm::BasicBlock* e) | |
39 { | |
40 begin = b; | |
41 end = e; | |
42 builder.SetInsertPoint(b); | |
43 this->s = s; | |
44 this->enclosingtry = enclosingtry; | |
31 } | 45 } |
32 | 46 |
33 ////////////////////////////////////////////////////////////////////////////////////////// | 47 ////////////////////////////////////////////////////////////////////////////////////////// |
34 IRState::IRState() | 48 IRState::IRState() |
35 { | 49 { |