[pypy-svn] r73197 - pypy/branch/cpython-extension/pypy/translator/c

xoraxax at codespeak.net xoraxax at codespeak.net
Wed Mar 31 02:44:50 CEST 2010


Author: xoraxax
Date: Wed Mar 31 02:44:48 2010
New Revision: 73197

Modified:
   pypy/branch/cpython-extension/pypy/translator/c/node.py
Log:
Also allow a compilation info on struct instances.

Modified: pypy/branch/cpython-extension/pypy/translator/c/node.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/translator/c/node.py	(original)
+++ pypy/branch/cpython-extension/pypy/translator/c/node.py	Wed Mar 31 02:44:48 2010
@@ -465,7 +465,7 @@
     if USESLOTS:
         __slots__ = """db T obj 
                        typename implementationtypename
-                        name ptrname
+                        name ptrname compilation_info
                         globalcontainer""".split()
 
     def __init__(self, db, T, obj):
@@ -490,6 +490,7 @@
         if self.typename != self.implementationtypename:
             if db.gettypedefnode(T).extra_union_for_varlength:
                 self.name += '.b'
+        self.compilation_info = getattr(obj, '_compilation_info', None)
         self.ptrname = '(&%s)' % self.name
 
     def is_thread_local(self):



More information about the Pypy-commit mailing list