options relating to script transformation: activation, dumping, selecting only a single function (for debugging)

This commit is contained in:
Vern Paxson 2021-01-10 13:29:05 -08:00
parent 8f001062bf
commit 77e9610086
2 changed files with 35 additions and 5 deletions

View file

@ -16,6 +16,17 @@ namespace zeek::detail {
// Flags controlling what sorts of analysis to do.
struct AnalyOpt {
// Whether to analyze scripts.
bool activate = false;
// If true, dump out transformed code: the results of reducing
// interpreted scripts, and, if optimize is set, of then optimizing
// them. Always done if only_func is set.
bool dump_xform = false;
// If non-nil, then only analyze the given function/event/hook.
const char* only_func = nullptr;
// If true, do global inlining.
bool inliner = false;