Author: Ronan Lamy <[email protected]>
Branch: exctrans
Changeset: r81623:b729d770a6fe
Date: 2016-01-06 12:29 +0100
http://bitbucket.org/pypy/pypy/changeset/b729d770a6fe/

Log:    kill patch_graph()

diff --git a/rpython/translator/c/database.py b/rpython/translator/c/database.py
--- a/rpython/translator/c/database.py
+++ b/rpython/translator/c/database.py
@@ -389,9 +389,9 @@
             for graph in node.graphs_to_patch():
                 graphs.append(graph)
         self.gctransformer.prepare_inline_helpers(graphs)
-        for node in funcnodes:
-            if getattr(node, 'funcgen', None):
-                node.funcgen.patch_graph()
+        if self.gctransformer.inline:
+            for graph in graphs:
+                self.gctransformer.inline_helpers(graph)
 
     def all_graphs(self):
         graphs = []
diff --git a/rpython/translator/c/funcgen.py b/rpython/translator/c/funcgen.py
--- a/rpython/translator/c/funcgen.py
+++ b/rpython/translator/c/funcgen.py
@@ -92,12 +92,6 @@
     def name(self, cname):  #virtual
         return cname
 
-    def patch_graph(self):
-        graph = self.graph
-        if self.db.gctransformer and self.db.gctransformer.inline:
-            self.db.gctransformer.inline_helpers(graph)
-        return graph
-
     def implementation_begin(self):
         SSI_to_SSA(self.graph)
         self.collect_var_and_types()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to