| 1216 | m_gen.Function.Return(); |
| 1217 | } |
| 1218 | void HLSLCompiler::translateBreakStatement(M4::HLSLBreakStatement* brk) |
| 1219 | { |
| 1220 | if (m_breaks.size() > 0) |
| 1221 | m_breaks.top().push_back(m_gen.Function.Goto()); |
| 1222 | } |
| 1223 | void HLSLCompiler::translateContinueStatement(M4::HLSLContinueStatement* brk) |
| 1224 | { |
| 1225 | m_gen.Function.SetAddress(m_gen.Function.Goto(), m_continueAddr.top()); |