mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Merge remote-tracking branch 'origin/topic/vern/ZAM-prep'
* origin/topic/vern/ZAM-prep: (45 commits) whoops overlooked the need to canonicalize filenames another set of tweaks per review comments addressed a number of code review comments baseline updates for merge support "any" coercions for "-O gen-C++" better descriptions for named record constructors test suite baseline updates for "-a opt" optimize-AST alternative test suite baseline updates for "-a xform" alternative / AST transformation error propagation fix for AST reduction updates to "-a inline" test suite alternative baseline updates for the main test suite baseline updates to test suite tests for compatibility with upcoming ZAM functionality "-O compile-all" option to specify compilation of inlined functions compile inlined functions if they're also used indirectly provide ZAM-generated code with low-level access to record fields fix for cloning records with fields of type "any" direct access for ZAM to VectorVal internal vector ZVal constructors, accessors & methods in support of ZAM switch ZVal representation of types from Type objects to TypeVal's revised error-reporting interface for ZVal's, to accommodate ZAM inner loop ...
This commit is contained in:
commit
67b45bc502
151 changed files with 8501 additions and 7235 deletions
|
@ -160,6 +160,7 @@ static void set_analysis_option(const char* opt, Options& opts)
|
|||
fprintf(stderr, "--optimize options:\n");
|
||||
fprintf(stderr, " all equivalent to \"inline\" and \"activate\"\n");
|
||||
fprintf(stderr, " add-C++ generate private C++ for any missing script bodies\n");
|
||||
fprintf(stderr, " compile-all *if* compiling, compile all scripts, even inlined ones\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, " gen-C++ generate C++ script bodies\n");
|
||||
|
@ -179,6 +180,8 @@ static void set_analysis_option(const char* opt, Options& opts)
|
|||
|
||||
if ( util::streq(opt, "add-C++") )
|
||||
a_o.add_CPP = true;
|
||||
else if ( util::streq(opt, "compile-all") )
|
||||
a_o.activate = a_o.compile_all = true;
|
||||
else if ( util::streq(opt, "dump-uds") )
|
||||
a_o.activate = a_o.dump_uds = true;
|
||||
else if ( util::streq(opt, "dump-xform") )
|
||||
|
@ -189,6 +192,8 @@ static void set_analysis_option(const char* opt, Options& opts)
|
|||
a_o.gen_standalone_CPP = true;
|
||||
else if ( util::streq(opt, "inline") )
|
||||
a_o.inliner = true;
|
||||
else if ( util::streq(opt, "optimize-AST") )
|
||||
a_o.activate = a_o.optimize_AST = true;
|
||||
else if ( util::streq(opt, "recursive") )
|
||||
a_o.inliner = a_o.report_recursive = true;
|
||||
else if ( util::streq(opt, "report-C++") )
|
||||
|
@ -199,8 +204,6 @@ static void set_analysis_option(const char* opt, Options& opts)
|
|||
a_o.use_CPP = true;
|
||||
else if ( util::streq(opt, "xform") )
|
||||
a_o.activate = true;
|
||||
else if ( util::streq(opt, "optimize-AST") )
|
||||
a_o.activate = a_o.optimize_AST = true;
|
||||
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue