about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-12-07 11:24:36 +0100
committerAjax <commial@gmail.com>2015-12-07 11:24:36 +0100
commitaacc2b4f42beeb822e98febce065041d9ab41568 (patch)
treee9f2dda0134ebd23919429b134d7b61f50fabec7
parentc948315825b052967f39f53b12569779abb503a7 (diff)
downloadmiasm-aacc2b4f42beeb822e98febce065041d9ab41568.tar.gz
miasm-aacc2b4f42beeb822e98febce065041d9ab41568.zip
IR/gen_graph: `link_all` is never used
-rw-r--r--miasm2/ir/ir.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/miasm2/ir/ir.py b/miasm2/ir/ir.py
index 3bf66ca5..04f964d6 100644
--- a/miasm2/ir/ir.py
+++ b/miasm2/ir/ir.py
@@ -423,13 +423,12 @@ class ir(object):
 
         return done
 
-    def _gen_graph(self, link_all = True):
+    def _gen_graph(self):
         """
         Gen irbloc digraph
-        @link_all: also gen edges to non present irblocs
         """
         self._graph = DiGraphIR(self.blocs)
-        for lbl, b in self.blocs.items():
+        for lbl, b in self.blocs.iteritems():
             self._graph.add_node(lbl)
             dst = self.dst_trackback(b)
             for d in dst: