tracking of optimization information associated with expressions

This commit is contained in:
Vern Paxson 2021-08-16 10:46:40 -07:00
parent 3ac725f44b
commit 074b18f3e8
3 changed files with 36 additions and 0 deletions

View file

@ -0,0 +1,17 @@
// See the file "COPYING" in the main distribution directory for copyright.
// Auxiliary information associated with expressions to aid script
// optimization.
#pragma once
namespace zeek::detail {
class ExprOptInfo {
public:
// The AST number of the statement in which this expression
// appears.
int stmt_num = -1; // -1 = not assigned yet
};
} // namespace zeek::detail