mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
-O gen-standalone-C++ fixes for recent more aggressive AST profiling
This commit is contained in:
parent
b547c7287d
commit
0a813a53c7
16 changed files with 188 additions and 104 deletions
|
@ -18,6 +18,7 @@ struct Options;
|
|||
|
||||
namespace zeek::detail {
|
||||
|
||||
using ObjPtr = IntrusivePtr<Obj>;
|
||||
using TypeSet = std::unordered_set<const Type*>;
|
||||
|
||||
// Flags controlling what sorts of analysis to do.
|
||||
|
@ -256,6 +257,7 @@ extern bool should_analyze(const ScriptFuncPtr& f, const StmtPtr& body);
|
|||
// True if the given object's location matches one specified by
|
||||
// --optimize-files=...
|
||||
extern bool obj_matches_opt_files(const Obj* obj);
|
||||
inline bool obj_matches_opt_files(const ObjPtr& obj) { return obj_matches_opt_files(obj.get()); }
|
||||
|
||||
// Analyze all of the parsed scripts collectively for usage issues (unless
|
||||
// suppressed by the flag) and optimization.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue