[qfcc] Add link from jump expression to destination

Having a dangling jump with no destination in my dot output wasn't very
informative.
This commit is contained in:
Bill Currie 2022-11-12 22:16:57 +09:00
parent bfda4e776f
commit 76740d213e

View file

@ -354,6 +354,8 @@ print_jump (dstring_t *dstr, expr_t *e, int level, int id, expr_t *next)
_print_expr (dstr, e->e.branch.target, level, id, next); _print_expr (dstr, e->e.branch.target, level, id, next);
dasprintf (dstr, "%*se_%p [label=\"%s\\n%d\"];\n", indent, "", e, dasprintf (dstr, "%*se_%p [label=\"%s\\n%d\"];\n", indent, "", e,
"jump", e->line); "jump", e->line);
dasprintf (dstr, "%*se_%p -> \"e_%p\";\n", indent, "", e,
e->e.branch.target);
} }
static void static void