[pypy-svn] r14108 - pypy/dist/pypy/translator/llvm2

rxe at codespeak.net rxe at codespeak.net
Sat Jul 2 19:19:35 CEST 2005


Author: rxe
Date: Sat Jul  2 19:19:34 2005
New Revision: 14108

Modified:
   pypy/dist/pypy/translator/llvm2/database.py
   pypy/dist/pypy/translator/llvm2/structnode.py
Log:
Fixes to the bugs the refactoring introduced.



Modified: pypy/dist/pypy/translator/llvm2/database.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/database.py	(original)
+++ pypy/dist/pypy/translator/llvm2/database.py	Sat Jul  2 19:19:34 2005
@@ -1,6 +1,6 @@
 from pypy.translator.llvm2.log import log 
 from pypy.translator.llvm2.funcnode import FuncNode, FuncTypeNode
-from pypy.translator.llvm2.structnode import StructNode, StructTypeNode
+from pypy.translator.llvm2.structnode import StructNode, StructTypeNode, StructVarsizeTypeNode
 from pypy.translator.llvm2.arraynode import ArrayNode, ArrayTypeNode
 from pypy.rpython import lltype
 from pypy.objspace.flow.model import Block, Constant, Variable

Modified: pypy/dist/pypy/translator/llvm2/structnode.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/structnode.py	(original)
+++ pypy/dist/pypy/translator/llvm2/structnode.py	Sat Jul  2 19:19:34 2005
@@ -39,8 +39,9 @@
         codewriter.structdef(self.ref, l)
 
 class StructVarsizeTypeNode(StructTypeNode):
-    def __init__(self, type_):
-        super(self, StructVarsizeTypeNode).__init__(type_)
+
+    def __init__(self, db, struct): 
+        super(StructVarsizeTypeNode, self).__init__(db, struct)
         new_var_name = "%%new.st.var.%s" % self.name
         self.constructor_name = "%s * %s(int %%len)" % (self.ref, new_var_name)
         



More information about the Pypy-commit mailing list