mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
Make the post-optimization sblocks dump optional.
This commit is contained in:
parent
bcde7396a0
commit
1e72e3eb20
3 changed files with 6 additions and 1 deletions
|
@ -74,6 +74,7 @@ typedef struct {
|
|||
qboolean final;
|
||||
qboolean dags;
|
||||
qboolean flow;
|
||||
qboolean post;
|
||||
} blockdot_options_t;
|
||||
|
||||
typedef struct {
|
||||
|
|
|
@ -435,7 +435,8 @@ flow_generate (flowgraph_t *graph)
|
|||
// generate new statements from the dag;
|
||||
dag_generate (node->dag, block);
|
||||
}
|
||||
dump_dot ("post", code, dump_dot_sblock);
|
||||
if (options.block_dot.post)
|
||||
dump_dot ("post", code, dump_dot_sblock);
|
||||
return code;
|
||||
}
|
||||
|
||||
|
|
|
@ -393,6 +393,8 @@ DecodeArgs (int argc, char **argv)
|
|||
options.block_dot.dags = flag;
|
||||
} else if (!(strcasecmp (temp, "flow"))) {
|
||||
options.block_dot.flow = flag;
|
||||
} else if (!(strcasecmp (temp, "post"))) {
|
||||
options.block_dot.post = flag;
|
||||
}
|
||||
temp = strtok (NULL, ",");
|
||||
}
|
||||
|
@ -404,6 +406,7 @@ DecodeArgs (int argc, char **argv)
|
|||
options.block_dot.final = true;
|
||||
options.block_dot.dags = true;
|
||||
options.block_dot.flow = true;
|
||||
options.block_dot.post = true;
|
||||
}
|
||||
break;
|
||||
case 'c':
|
||||
|
|
Loading…
Reference in a new issue