Mercurial > projects > ldc
diff gen/irstate.cpp @ 1141:f99a3b393c03
Reorganize EnclosingHandlers to require less changes to the frontend and allow us to
implement the synchronized storage class for functions.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 24 Mar 2009 21:18:18 +0100 |
parents | 8c73ff5f69e0 |
children | ad7f2f1862d6 |
line wrap: on
line diff
--- a/gen/irstate.cpp Tue Mar 24 14:34:16 2009 +0100 +++ b/gen/irstate.cpp Tue Mar 24 21:18:18 2009 +0100 @@ -34,18 +34,16 @@ } ////////////////////////////////////////////////////////////////////////////////////////// -IRLoopScope::IRLoopScope() +IRTargetScope::IRTargetScope() { } -IRLoopScope::IRLoopScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* b, llvm::BasicBlock* e, bool isSwitch) +IRTargetScope::IRTargetScope(Statement* s, EnclosingHandler* enclosinghandler, llvm::BasicBlock* continueTarget, llvm::BasicBlock* breakTarget) { - begin = b; - end = e; - //builder.SetInsertPoint(b); this->s = s; this->enclosinghandler = enclosinghandler; - this->isSwitch = isSwitch; + this->breakTarget = breakTarget; + this->continueTarget = continueTarget; } //////////////////////////////////////////////////////////////////////////////////////////