Mercurial > lcfOS
comparison python/ppci/c3/codegenerator.py @ 360:42343d189e14
Bugfix in for loop
author | Windel Bouwman |
---|---|
date | Fri, 14 Mar 2014 16:11:32 +0100 |
parents | 5477e499b039 |
children | c05ab629976a |
comparison
equal
deleted
inserted
replaced
359:b4ac28efcdf4 | 360:42343d189e14 |
---|---|
154 self.emit(ir.Jump(bbtest)) | 154 self.emit(ir.Jump(bbtest)) |
155 self.setBlock(bbtest) | 155 self.setBlock(bbtest) |
156 self.gen_cond_code(code.condition, bbdo, te) | 156 self.gen_cond_code(code.condition, bbdo, te) |
157 self.setBlock(bbdo) | 157 self.setBlock(bbdo) |
158 self.genCode(code.statement) | 158 self.genCode(code.statement) |
159 self.genCode(code.final) | |
159 self.emit(ir.Jump(bbtest)) | 160 self.emit(ir.Jump(bbtest)) |
160 self.setBlock(te) | 161 self.setBlock(te) |
161 else: | 162 else: |
162 raise NotImplementedError('Unknown stmt {}'.format(code)) | 163 raise NotImplementedError('Unknown stmt {}'.format(code)) |
163 | 164 |