diff python/ppci/core/context.py @ 110:9e552d34bd60

Work on compiler
author Windel Bouwman
date Fri, 04 Jan 2013 15:25:58 +0100
parents ed230e947dc6
children
line wrap: on
line diff
--- a/python/ppci/core/context.py	Tue Jan 01 17:17:44 2013 +0100
+++ b/python/ppci/core/context.py	Fri Jan 04 15:25:58 2013 +0100
@@ -3,10 +3,10 @@
 class Context:
    """ Global context """
    def __init__(self):
-      self.Int8Type = IntegerType(self, 8)
-      self.Int16Type = IntegerType(self, 16)
-      self.Int32Type = IntegerType(self, 32)
-      self.Int64Type = IntegerType(self, 64)
-      self.VoidType = llvmType(self, typeID.Void)
-      self.DoubleType = llvmType(self, typeID.Double)
+      self.Int8Type = IntegerType(8)
+      self.Int16Type = IntegerType(16)
+      self.Int32Type = IntegerType(32)
+      self.Int64Type = IntegerType(64)
+      self.VoidType = llvmType(typeID.Void)
+      self.DoubleType = llvmType(typeID.Double)