[pypy-svn] r47946 - pypy/dist/pypy/translator/backendopt

fijal at codespeak.net fijal at codespeak.net
Thu Oct 25 17:14:56 CEST 2007


Author: fijal
Date: Thu Oct 25 17:14:55 2007
New Revision: 47946

Modified:
   pypy/dist/pypy/translator/backendopt/inline.py
Log:
Add a possibility to iterate over all callsites


Modified: pypy/dist/pypy/translator/backendopt/inline.py
==============================================================================
--- pypy/dist/pypy/translator/backendopt/inline.py	(original)
+++ pypy/dist/pypy/translator/backendopt/inline.py	Thu Oct 25 17:14:55 2007
@@ -77,7 +77,8 @@
 
             graph = getattr(funcobj, 'graph', None)
             # accept a function or a graph as 'inline_func'
-            if (graph is calling_what or
+            if (calling_what is None or
+                graph is calling_what or
                 getattr(funcobj, '_callable', None) is calling_what):
                 yield graph, block, i
 



More information about the Pypy-commit mailing list