diff python/ppci/core/function.py @ 106:f2d980eef509

improved code generation
author Windel Bouwman
date Mon, 31 Dec 2012 18:26:56 +0100
parents 6a303f835c6d
children 9e552d34bd60
line wrap: on
line diff
--- a/python/ppci/core/function.py	Mon Dec 31 17:35:17 2012 +0100
+++ b/python/ppci/core/function.py	Mon Dec 31 18:26:56 2012 +0100
@@ -10,11 +10,12 @@
       self.functiontype = functiontype
       self.name = name
       self.module = module
+
+      self.module.Functions.append(self)
       self.basicblocks = []
       self.arguments = []
       # Construct formal arguments depending on function type
 
-
    BasicBlocks = property(lambda self: self.basicblocks)
    Arguments = property(lambda self: self.arguments)
    ReturnType = property(lambda self: self.functiontype.returnType)