Mercurial > lcfOS
comparison python/transform.py @ 274:ea93e0a7a31e
Move docs
author | Windel Bouwman |
---|---|
date | Wed, 04 Sep 2013 17:35:06 +0200 |
parents | 444b9df2ed99 |
children | 2ccd57b1d78c |
comparison
equal
deleted
inserted
replaced
273:6b3a874edd6e | 274:ea93e0a7a31e |
---|---|
27 pass | 27 pass |
28 | 28 |
29 | 29 |
30 class BasicBlockPass(FunctionPass): | 30 class BasicBlockPass(FunctionPass): |
31 def onFunction(self, f): | 31 def onFunction(self, f): |
32 for bb in f.BasicBlocks: | 32 for bb in f.Blocks: |
33 self.onBasicBlock(bb) | 33 self.onBasicBlock(bb) |
34 | 34 |
35 def onBasicBlock(self, bb): | 35 def onBasicBlock(self, bb): |
36 """ Override this virtual method """ | 36 """ Override this virtual method """ |
37 raise NotImplementedError() | 37 raise NotImplementedError() |