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

ericvrp at codespeak.net ericvrp at codespeak.net
Wed Jul 6 16:48:19 CEST 2005


Author: ericvrp
Date: Wed Jul  6 16:48:18 2005
New Revision: 14345

Modified:
   pypy/dist/pypy/translator/llvm2/database.py
Log:
oops


Modified: pypy/dist/pypy/translator/llvm2/database.py
==============================================================================
--- pypy/dist/pypy/translator/llvm2/database.py	(original)
+++ pypy/dist/pypy/translator/llvm2/database.py	Wed Jul  6 16:48:18 2005
@@ -120,20 +120,6 @@
 
         if isinstance(const_or_var, Constant):
             ct = const_or_var.concretetype
-            while isinstance(ct, lltype.Ptr):
-                ct = ct.TO
-            
-            if isinstance(ct, lltype.FuncType):
-                if const_or_var.value._obj._callable and not hasattr(const_or_var.value._obj, 'graph'):
-                    log('EXTERNAL FUNCTION' + str(dir(const_or_var.value._obj)))
-                    #XXX if it's has a one-to-one C function then we really want THAT declaration
-                else:
-                    self.addpending(const_or_var, FuncNode(self, const_or_var))
-            else:
-                value = const_or_var.value
-                while hasattr(value, "_obj"):
-                    value = value._obj
-
             if isinstance(ct, lltype.Primitive):
                 log.prepare(const_or_var, "(is primitive)")
                 return



More information about the Pypy-commit mailing list