From 752d7fb00c46aefc87f8a1c8f3aab450e7dc1b44 Mon Sep 17 00:00:00 2001 From: Fabrice Desclaux Date: Thu, 10 Mar 2016 09:38:58 +0100 Subject: Depgraph: updt api --- test/analysis/depgraph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/analysis') diff --git a/test/analysis/depgraph.py b/test/analysis/depgraph.py index d488d995..f1d9151c 100644 --- a/test/analysis/depgraph.py +++ b/test/analysis/depgraph.py @@ -134,13 +134,13 @@ def bloc2graph(irgraph, label=False, lines=True): label_attr, label_name) block_html_lines = [] if lines and irblock is not None: - for exprs in irblock.irs: - for expr in exprs: + for assignblk in irblock.irs: + for dst, src in assignblk.iteritems(): if False: out_render = "%.8X " % (0, td_attr) else: out_render = "" - out_render += escape_chars.sub(fix_chars, str(expr)) + out_render += escape_chars.sub(fix_chars, "%s = %s" % (dst, src)) block_html_lines.append(out_render) block_html_lines.append(" ") block_html_lines.pop() -- cgit 1.4.1