comparison python/ir/builder.py @ 186:46d62dadd61b

Improved testsuite
author Windel Bouwman
date Sat, 25 May 2013 14:26:25 +0200
parents 3eb06f5fb987
children de3a68f677a5
comparison
equal deleted inserted replaced
185:51a6440d6398 186:46d62dadd61b
50 def setFunc(self, f): 50 def setFunc(self, f):
51 self.fn = f 51 self.fn = f
52 def setBB(self, bb): 52 def setBB(self, bb):
53 self.bb = bb 53 self.bb = bb
54 def addIns(self, i): 54 def addIns(self, i):
55 if not self.bb:
56 raise Exception('No basic block')
55 self.bb.addIns(i) 57 self.bb.addIns(i)
56 58