tracking of optimization information associated with statements

This commit is contained in:
Vern Paxson 2021-08-16 10:42:06 -07:00
parent ed3c87d253
commit 3ac725f44b
3 changed files with 39 additions and 0 deletions

View file

@ -19,6 +19,7 @@
#include "zeek/Trigger.h"
#include "zeek/IntrusivePtr.h"
#include "zeek/logging/Manager.h"
#include "zeek/script_opt/StmtOptInfo.h"
#include "zeek/logging/logging.bif.h"
@ -49,11 +50,14 @@ Stmt::Stmt(StmtTag arg_tag)
last_access = 0;
access_count = 0;
opt_info = new StmtOptInfo();
SetLocationInfo(&start_location, &end_location);
}
Stmt::~Stmt()
{
delete opt_info;
}
StmtList* Stmt::AsStmtList()