mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
FuncInfo now tracks priority; some tidying/widening of its accessors
This commit is contained in:
parent
8d2bb28f03
commit
72f62f398a
3 changed files with 19 additions and 13 deletions
|
@ -433,7 +433,7 @@ ProfileFuncs::ProfileFuncs(std::vector<FuncInfo>& funcs,
|
|||
f.SetSkip(true);
|
||||
|
||||
f.SetProfile(std::move(pf));
|
||||
func_profs[f.Func()] = f.Profile();
|
||||
func_profs[f.Func()] = f.ProfilePtr();
|
||||
}
|
||||
|
||||
// We now have the main (starting) types used by all of the
|
||||
|
@ -524,7 +524,7 @@ void ProfileFuncs::ComputeBodyHashes(std::vector<FuncInfo>& funcs)
|
|||
{
|
||||
for ( auto& f : funcs )
|
||||
if ( ! f.ShouldSkip() )
|
||||
ComputeProfileHash(f.Profile());
|
||||
ComputeProfileHash(f.ProfilePtr());
|
||||
|
||||
for ( auto& l : lambdas )
|
||||
ComputeProfileHash(ExprProf(l));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue