comparison python/ppci/core/basicblock.py @ 111:d3068efdf045

merge
author Windel Bouwman
date Fri, 04 Jan 2013 15:26:59 +0100
parents 9e552d34bd60
children
comparison
equal deleted inserted replaced
109:ad14c7c52589 111:d3068efdf045
1 1 from .value import Value
2 2
3 class BasicBlock(Value): 3 class BasicBlock(Value):
4 """ 4 """
5 A basic block represents a sequence of instructions without 5 A basic block represents a sequence of instructions without
6 jumps and branches. 6 jumps and branches.
7 """ 7 """
8 def __init__(self): 8 def __init__(self):
9 pass 9 super().__init__()
10 self.instructions = []
11 self.name = None
12 def getInstructions(self):
13 return self.instructions
14 Instructions = property(getInstructions)
10 15