diff python/transform.py @ 225:1c7364bd74c7

Fixed pointer deref
author Windel Bouwman
date Thu, 11 Jul 2013 07:42:30 +0200
parents 1fa3e0050b49
children ff40407c0240
line wrap: on
line diff
--- a/python/transform.py	Tue Jul 09 17:59:15 2013 +0200
+++ b/python/transform.py	Thu Jul 11 07:42:30 2013 +0200
@@ -89,15 +89,12 @@
             # find predecessors of this block and replace this block reference with the jumped reference.
             ins = bb.LastInstruction
             if type(ins) is Branch:
-                print('Removing block {}'.format(bb))
-                #print(ins, bb.Predecessors)
                 preds = bb.Predecessors
                 if bb in preds:
                     # Do not remove if preceeded by itself
                     pass
                 else:
                     for pred in bb.Predecessors:
-                          print('predecessor: {}'.format(pred))
                           pred.LastInstruction.changeTarget(bb, ins.target)
                     f.removeBasicBlock(bb)