comparison gen/irstate.c @ 14:0e86428ee567 trunk

[svn r18] * Initial support for switch statements - No string switches yet. * Moved Statement::toIR definitions into gen/statements.c - toir.c is still too big. * Removed some BB bloat with ScopeStatements.
author lindquist
date Wed, 03 Oct 2007 02:15:12 +0200
parents 35d93ce68cf4
children 2841234d2aea
comparison
equal deleted inserted replaced
13:3d1d98329fa7 14:0e86428ee567
86 assert(s.end); 86 assert(s.end);
87 return s.end; 87 return s.end;
88 } 88 }
89 bool IRState::scopereturned() 89 bool IRState::scopereturned()
90 { 90 {
91 return scope().returned; 91 //return scope().returned;
92 return !scopebb()->empty() && scopebb()->back().isTerminator();
92 } 93 }
93 94
94 ////////////////////////////////////////////////////////////////////////////////////////// 95 //////////////////////////////////////////////////////////////////////////////////////////
95 96
96 IRStruct::IRStruct() 97 IRStruct::IRStruct()