mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
Enable live var flow dumps.
This commit is contained in:
parent
d2f2fdc28e
commit
2e105f17f2
3 changed files with 6 additions and 0 deletions
|
@ -76,6 +76,7 @@ typedef struct {
|
|||
qboolean dags;
|
||||
qboolean expr;
|
||||
qboolean reaching;
|
||||
qboolean live;
|
||||
qboolean flow;
|
||||
qboolean post;
|
||||
} blockdot_options_t;
|
||||
|
|
|
@ -1173,6 +1173,8 @@ flow_data_flow (function_t *func)
|
|||
if (options.block_dot.reaching)
|
||||
dump_dot ("reaching", graph, dump_dot_flow_reaching);
|
||||
flow_live_vars (graph);
|
||||
if (options.block_dot.live)
|
||||
dump_dot ("live", graph, dump_dot_flow_live);
|
||||
flow_uninitialized (graph);
|
||||
flow_build_dags (graph);
|
||||
func->sblock = flow_generate (graph);
|
||||
|
|
|
@ -402,6 +402,8 @@ DecodeArgs (int argc, char **argv)
|
|||
options.block_dot.flow = flag;
|
||||
} else if (!(strcasecmp (temp, "reaching"))) {
|
||||
options.block_dot.reaching = flag;
|
||||
} else if (!(strcasecmp (temp, "live"))) {
|
||||
options.block_dot.live = flag;
|
||||
} else if (!(strcasecmp (temp, "post"))) {
|
||||
options.block_dot.post = flag;
|
||||
}
|
||||
|
@ -417,6 +419,7 @@ DecodeArgs (int argc, char **argv)
|
|||
options.block_dot.expr = true;
|
||||
options.block_dot.flow = true;
|
||||
options.block_dot.reaching = true;
|
||||
options.block_dot.live = true;
|
||||
options.block_dot.post = true;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue