enable setting "-O optimize-AST" option

This commit is contained in:
Vern Paxson 2021-02-27 10:59:27 -08:00
parent 56ab0ddcf1
commit d38cc04e83
3 changed files with 15 additions and 0 deletions

View file

@ -22,6 +22,9 @@ struct AnalyOpt {
// Whether to analyze scripts.
bool activate = false;
// Whether to optimize the AST.
bool optimize_AST = 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.