mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 02:28:21 +00:00
Adjust some Reducer ref-counting and IntrusivePtr usage
This commit is contained in:
parent
7ce4351ed0
commit
b4cf393475
4 changed files with 12 additions and 12 deletions
|
@ -25,7 +25,7 @@ public:
|
|||
|
||||
ExprPtr GenTemporaryExpr(const TypePtr& t, ExprPtr rhs);
|
||||
|
||||
NameExpr* UpdateName(NameExpr* n);
|
||||
NameExprPtr UpdateName(NameExprPtr n);
|
||||
bool NameIsReduced(const NameExpr* n) const;
|
||||
|
||||
void UpdateIDs(IDPList* ids);
|
||||
|
@ -105,7 +105,7 @@ public:
|
|||
// Given an lhs=rhs statement followed by succ_stmt, returns
|
||||
// a (new) merge of the two if they're of the form tmp=rhs, var=tmp;
|
||||
// otherwise, nil.
|
||||
Stmt* MergeStmts(const NameExpr* lhs, ExprPtr rhs, Stmt* succ_stmt);
|
||||
StmtPtr MergeStmts(const NameExpr* lhs, ExprPtr rhs, Stmt* succ_stmt);
|
||||
|
||||
// The following two methods will, in the future, update expressions
|
||||
// with optimized versions. They are distinct because the first
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue