mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 07:08:19 +00:00
low-level tidying
This commit is contained in:
parent
607e9950bf
commit
e42b1fa05d
2 changed files with 3 additions and 2 deletions
|
@ -154,7 +154,7 @@ void Inliner::InlineFunction(FuncInfo* f)
|
|||
f->Func()->SetFrameSize(new_frame_size);
|
||||
}
|
||||
|
||||
ExprPtr Inliner::CheckForInlining(IntrusivePtr<CallExpr> c)
|
||||
ExprPtr Inliner::CheckForInlining(CallExprPtr c)
|
||||
{
|
||||
auto f = c->Func();
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
#pragma once
|
||||
|
||||
#include "zeek/Func.h"
|
||||
#include "zeek/Expr.h"
|
||||
#include "zeek/Scope.h"
|
||||
|
||||
#include <unordered_set>
|
||||
|
@ -25,7 +26,7 @@ public:
|
|||
|
||||
// Either returns the original CallExpr if it's not inline-able,
|
||||
// or an InlineExpr if it is.
|
||||
ExprPtr CheckForInlining(IntrusivePtr<CallExpr> c);
|
||||
ExprPtr CheckForInlining(CallExprPtr c);
|
||||
|
||||
// True if the given function has been inlined.
|
||||
bool WasInlined(Func* f) { return inline_ables.count(f) > 0; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue