Mercurial > lcfOS
diff python/ir/basicblock.py @ 243:ef683881c64e
Remove various files
author | Windel Bouwman |
---|---|
date | Tue, 23 Jul 2013 16:50:02 +0200 |
parents | 63bb40758066 |
children | c4370696ccc7 |
line wrap: on
line diff
--- a/python/ir/basicblock.py Mon Jul 22 22:56:51 2013 +0200 +++ b/python/ir/basicblock.py Tue Jul 23 16:50:02 2013 +0200 @@ -11,7 +11,6 @@ def addInstruction(self, i): i.parent = self self.instructions.append(i) - addIns = addInstruction def replaceInstruction(self, i1, i2): idx = self.instructions.index(i1) @@ -26,14 +25,7 @@ def getInstructions(self): return self.instructions - - def setInstructions(self, ins): - for i in self.instructions: - i.parent = None - self.instructions = ins - for i in self.instructions: - i.parent = self - Instructions = property(getInstructions, setInstructions) + Instructions = property(getInstructions) def getLastIns(self): return self.instructions[-1] @@ -46,13 +38,12 @@ @property def FirstInstruction(self): return self.instructions[0] - FirstIns = FirstInstruction def getSuccessors(self): - if not self.Empty: - i = self.LastInstruction - return i.Targets - return [] + if not self.Empty: + i = self.LastInstruction + return i.Targets + return [] Successors = property(getSuccessors) def getPredecessors(self):