mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
flag/environment variable for dumping use-defs
This commit is contained in:
parent
8a3622a726
commit
12c9b5ede5
3 changed files with 8 additions and 1 deletions
|
@ -157,6 +157,7 @@ static void set_analysis_option(const char* opt, Options& opts)
|
|||
if ( util::streq(opt, "help") )
|
||||
{
|
||||
fprintf(stderr, "--optimize options:\n");
|
||||
fprintf(stderr, " dump-uds dump use-defs to stdout; implies xform\n");
|
||||
fprintf(stderr, " dump-xform dump transformed scripts to stdout; implies xform\n");
|
||||
fprintf(stderr, " help print this list\n");
|
||||
fprintf(stderr, " inline inline function calls\n");
|
||||
|
@ -167,7 +168,9 @@ static void set_analysis_option(const char* opt, Options& opts)
|
|||
|
||||
auto& a_o = opts.analysis_options;
|
||||
|
||||
if ( util::streq(opt, "dump-xform") )
|
||||
if ( util::streq(opt, "dump-uds") )
|
||||
a_o.activate = a_o.dump_uds = true;
|
||||
else if ( util::streq(opt, "dump-xform") )
|
||||
a_o.activate = a_o.dump_xform = true;
|
||||
else if ( util::streq(opt, "inline") )
|
||||
a_o.inliner = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue