diff --git a/tools/qfcc/include/options.h b/tools/qfcc/include/options.h index 54bc55ee8..3dd4bd7fb 100644 --- a/tools/qfcc/include/options.h +++ b/tools/qfcc/include/options.h @@ -74,6 +74,7 @@ typedef struct { qboolean final; qboolean dags; qboolean flow; + qboolean post; } blockdot_options_t; typedef struct { diff --git a/tools/qfcc/source/flow.c b/tools/qfcc/source/flow.c index 37e7b6c6d..d592c5baa 100644 --- a/tools/qfcc/source/flow.c +++ b/tools/qfcc/source/flow.c @@ -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; } diff --git a/tools/qfcc/source/options.c b/tools/qfcc/source/options.c index 85b91b925..7546362a0 100644 --- a/tools/qfcc/source/options.c +++ b/tools/qfcc/source/options.c @@ -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':