[qfcc] Skip dag dependency lines for leaf nodes

Leaf nodes never generate code so showing lines to them only cluttered
the displayed dag (they're still there internally, though).
This commit is contained in:
Bill Currie 2023-09-19 11:47:28 +09:00
parent 1e274b385d
commit 1183d44361

View file

@ -119,9 +119,12 @@ print_node (dstring_t *dstr, dag_t *dag, dagnode_t *node)
}
for (edge_iter = set_first (edges); edge_iter;
edge_iter = set_next (edge_iter)) {
dasprintf (dstr,
" \"dagnode_%p\" -> \"dagnode_%p\" [style=dashed];\n",
node, dag->nodes[edge_iter->element]);
auto n = dag->nodes[edge_iter->element];
if (n->type != st_none) {
dasprintf (dstr,
" \"dagnode_%p\" -> \"dagnode_%p\" [style=dashed];\n",
node, n);
}
}
set_delete (edges);
if (0) {