Make the dags in flow graphs a little easier to read.

This commit is contained in:
Bill Currie 2012-11-16 12:42:57 +09:00
parent db605fa998
commit c1776fc2ad
2 changed files with 2 additions and 2 deletions

View file

@ -140,7 +140,7 @@ print_node (dstring_t *dstr, dagnode_t *node)
void
print_dag (dstring_t *dstr, dagnode_t *dag)
{
dasprintf (dstr, " subgraph dag_%p {", dag);
dasprintf (dstr, " subgraph cluster_dag_%p {", dag);
print_count++;
print_root_nodes (dstr, dag);
print_child_nodes (dstr, dag);

View file

@ -89,7 +89,7 @@ print_flow_node (dstring_t *dstr, flowgraph_t *graph, flownode_t *node,
dasprintf (dstr, "%*s}\n", indent, "");
}
if (node->dag) {
dasprintf (dstr, " fn_%p -> dagnode_%p;", node, node->dag);
dasprintf (dstr, " fn_%p -> dagnode_%p;\n", node, node->dag);
print_dag (dstr, node->dag);
}
}