[pypy-svn] r65171 - pypy/branch/pyjitpl5/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Fri May 8 22:38:30 CEST 2009


Author: arigo
Date: Fri May  8 22:38:29 2009
New Revision: 65171

Modified:
   pypy/branch/pyjitpl5/pypy/jit/metainterp/history.py
Log:
Kill this function, not used any more.


Modified: pypy/branch/pyjitpl5/pypy/jit/metainterp/history.py
==============================================================================
--- pypy/branch/pyjitpl5/pypy/jit/metainterp/history.py	(original)
+++ pypy/branch/pyjitpl5/pypy/jit/metainterp/history.py	Fri May  8 22:38:29 2009
@@ -38,17 +38,6 @@
     else:
         raise NotImplementedError("type %s not supported" % TYPE)
 
-def getkind_num(cpu, TYPE):
-    if TYPE is lltype.Void:
-        return "void"
-    elif isinstance(TYPE, lltype.Primitive):
-        return "_%d" % cpu.numof(TYPE)
-    else:
-        assert isinstance(TYPE, lltype.Ptr)
-        if TYPE.TO._gckind == 'raw':
-            return "_%d" % cpu.numof(TYPE)
-        return "ptr"
-
 def repr_pointer(box):
     try:
         return '*%s' % (box.value._obj.container._TYPE._name,)



More information about the Pypy-commit mailing list