ZBody/ZInst traversal

This commit is contained in:
Vern Paxson 2024-06-11 14:36:12 -07:00
parent 9f57ac7c64
commit d5078b2722
3 changed files with 60 additions and 0 deletions

View file

@ -6,6 +6,7 @@
#include "zeek/Desc.h"
#include "zeek/Func.h"
#include "zeek/TraverseTypes.h"
#include "zeek/script_opt/ZAM/BuiltInSupport.h"
#include "zeek/script_opt/ZAM/Support.h"
#include "zeek/script_opt/ZAM/ZOp.h"
@ -109,6 +110,8 @@ public:
// Returns a string describing the constant.
std::string ConstDump() const;
TraversalCode Traverse(TraversalCallback* cb) const;
ZOp op = OP_NOP;
ZAMOpType op_type = OP_X;
@ -455,6 +458,8 @@ public:
// Same but for constants.
void Add(int i, ValPtr c) { elems[i].SetConstant(c); }
TraversalCode Traverse(TraversalCallback* cb) const;
// Member variables. We could add accessors for manipulating
// these (and make the variables private), but for convenience we
// make them directly available.