mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +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);
|
f->Func()->SetFrameSize(new_frame_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
ExprPtr Inliner::CheckForInlining(IntrusivePtr<CallExpr> c)
|
ExprPtr Inliner::CheckForInlining(CallExprPtr c)
|
||||||
{
|
{
|
||||||
auto f = c->Func();
|
auto f = c->Func();
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "zeek/Func.h"
|
#include "zeek/Func.h"
|
||||||
|
#include "zeek/Expr.h"
|
||||||
#include "zeek/Scope.h"
|
#include "zeek/Scope.h"
|
||||||
|
|
||||||
#include <unordered_set>
|
#include <unordered_set>
|
||||||
|
@ -25,7 +26,7 @@ public:
|
||||||
|
|
||||||
// Either returns the original CallExpr if it's not inline-able,
|
// Either returns the original CallExpr if it's not inline-able,
|
||||||
// or an InlineExpr if it is.
|
// or an InlineExpr if it is.
|
||||||
ExprPtr CheckForInlining(IntrusivePtr<CallExpr> c);
|
ExprPtr CheckForInlining(CallExprPtr c);
|
||||||
|
|
||||||
// True if the given function has been inlined.
|
// True if the given function has been inlined.
|
||||||
bool WasInlined(Func* f) { return inline_ables.count(f) > 0; }
|
bool WasInlined(Func* f) { return inline_ables.count(f) > 0; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue