FuncInfo now tracks priority; some tidying/widening of its accessors

This commit is contained in:
Vern Paxson 2021-04-19 16:19:22 -07:00
parent 8d2bb28f03
commit 72f62f398a
3 changed files with 19 additions and 13 deletions

View file

@ -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));