support for discarding ASTs once compiled via ZAM script optimization

This commit is contained in:
Vern Paxson 2023-07-20 09:39:05 -07:00
parent 79c53c9ed6
commit 91d70e6dd4
13 changed files with 55 additions and 17 deletions

View file

@ -196,6 +196,10 @@ extern bool should_analyze(const ScriptFuncPtr& f, const StmtPtr& body);
// suppressed by the flag) and optimization.
extern void analyze_scripts(bool no_unused_warnings);
// Called when all script processing is complete and we can discard
// unused ASTs and associated state.
extern void clear_script_analysis();
// Called when Zeek is terminating.
extern void finish_script_execution();