mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 05:28:20 +00:00
ZBody/ZInst traversal
This commit is contained in:
parent
9f57ac7c64
commit
d5078b2722
3 changed files with 60 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue