comparison python/ppci/core/function.py @ 105:6a303f835c6d

Removed compilers directory
author Windel Bouwman
date Mon, 31 Dec 2012 17:35:17 +0100
parents ed230e947dc6
children f2d980eef509
comparison
equal deleted inserted replaced
104:ed230e947dc6 105:6a303f835c6d
1
2 class Argument:
3 def __init__(self, argtype, name, function):
4 self.t = argtype
5 self.name = name
6 self.function = function
1 7
2 class Function: 8 class Function:
3 def __init__(self, functiontype, name, module): 9 def __init__(self, functiontype, name, module):
4 self.functiontype = functiontype 10 self.functiontype = functiontype
5 self.name = name 11 self.name = name
6 self.module = module 12 self.module = module
13 self.basicblocks = []
14 self.arguments = []
15 # Construct formal arguments depending on function type
7 16
17
18 BasicBlocks = property(lambda self: self.basicblocks)
19 Arguments = property(lambda self: self.arguments)
20 ReturnType = property(lambda self: self.functiontype.returnType)
21 FunctionType = property(lambda self: self.functiontype)
22