mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
Rename print_extra_live to print_flow_vars.
This commit is contained in:
parent
5dbb7b6d4d
commit
fbdf560a7a
1 changed files with 5 additions and 4 deletions
|
@ -197,7 +197,7 @@ print_flow_node_live (dstring_t *dstr, flowgraph_t *graph, flownode_t *node,
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
print_extra_live (dstring_t *dstr, flowgraph_t *graph, int level)
|
print_flow_vars (dstring_t *dstr, flowgraph_t *graph, int level)
|
||||||
{
|
{
|
||||||
int indent = level * 2 + 2;
|
int indent = level * 2 + 2;
|
||||||
int i;
|
int i;
|
||||||
|
@ -208,8 +208,9 @@ print_extra_live (dstring_t *dstr, flowgraph_t *graph, int level)
|
||||||
"cellspacing=\"0\">\n", indent + 2, "");
|
"cellspacing=\"0\">\n", indent + 2, "");
|
||||||
for (i = 0; i < graph->func->num_vars; i++) {
|
for (i = 0; i < graph->func->num_vars; i++) {
|
||||||
var = graph->func->vars[i];
|
var = graph->func->vars[i];
|
||||||
dasprintf (dstr, "%*s<tr><td>(%d) %s</td></tr>\n", indent + 4, "",
|
dasprintf (dstr, "%*s<tr><td>(%d) %s %s</td></tr>\n", indent + 4, "",
|
||||||
var->number, html_string(operand_string (var->op)));
|
var->number, html_string(operand_string (var->op)),
|
||||||
|
set_as_string (var->define));
|
||||||
}
|
}
|
||||||
dasprintf (dstr, "%*s</table>>];\n", indent + 2, "");
|
dasprintf (dstr, "%*s</table>>];\n", indent + 2, "");
|
||||||
}
|
}
|
||||||
|
@ -299,7 +300,7 @@ print_flow_edge_statements (dstring_t *dstr, flowgraph_t *graph,
|
||||||
static flow_dot_t flow_dot_methods[] = {
|
static flow_dot_t flow_dot_methods[] = {
|
||||||
{"", print_flow_node, print_flow_edge},
|
{"", print_flow_node, print_flow_edge},
|
||||||
{"dag", print_flow_node_dag, print_flow_edge_dag},
|
{"dag", print_flow_node_dag, print_flow_edge_dag},
|
||||||
{"live", print_flow_node_live, print_flow_edge, print_extra_live},
|
{"live", print_flow_node_live, print_flow_edge, print_flow_vars},
|
||||||
{"reaching", print_flow_node_reaching, print_flow_edge},
|
{"reaching", print_flow_node_reaching, print_flow_edge},
|
||||||
{"statements", print_flow_node_statements, print_flow_edge_statements},
|
{"statements", print_flow_node_statements, print_flow_edge_statements},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue