mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[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:
parent
bfda4e776f
commit
76740d213e
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
dasprintf (dstr, "%*se_%p [label=\"%s\\n%d\"];\n", indent, "", e,
|
||||
"jump", e->line);
|
||||
dasprintf (dstr, "%*se_%p -> \"e_%p\";\n", indent, "", e,
|
||||
e->e.branch.target);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue