[pypy-svn] r59820 - pypy/branch/oo-jit/pypy/rpython/lltypesystem
arigo at codespeak.net
arigo at codespeak.net
Sat Nov 8 17:41:09 CET 2008
Author: arigo
Date: Sat Nov 8 17:41:06 2008
New Revision: 59820
Modified:
pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
Ignore the RuntimeTypeInfo that shows up in vtables
when running pyjitpl's assembler backend.
Modified: pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py (original)
+++ pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py Sat Nov 8 17:41:06 2008
@@ -179,6 +179,8 @@
elif isinstance(T, lltype.Array):
return build_ctypes_array(T, delayed_builders)
elif isinstance(T, lltype.OpaqueType):
+ if T is lltype.RuntimeTypeInfo:
+ return ctypes.c_char # the exact type is hopefully not important
if T.hints.get('external', None) != 'C':
raise TypeError("%s is not external" % T)
return ctypes.c_char * T.hints['getsize']()
More information about the Pypy-commit
mailing list