From a4b66b14e217391875921d7a87b33adf2eed7b18 Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Tue, 28 Feb 2023 16:21:27 -0500 Subject: [PATCH] cmd/compile/internal/pgo: drop unused 'recursive' argument Change-Id: I7ccde4c6d1506cbd8e14d284a921f06b29b5f495 Reviewed-on: https://go-review.googlesource.com/c/go/+/472258 Run-TryBot: Michael Pratt Reviewed-by: Cherry Mui Auto-Submit: Michael Pratt TryBot-Result: Gopher Robot --- src/cmd/compile/internal/pgo/irgraph.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cmd/compile/internal/pgo/irgraph.go b/src/cmd/compile/internal/pgo/irgraph.go index 2185044089..a8d5008929 100644 --- a/src/cmd/compile/internal/pgo/irgraph.go +++ b/src/cmd/compile/internal/pgo/irgraph.go @@ -250,14 +250,14 @@ func (p *Profile) initializeIRGraph() { // Bottomup walk over the function to create IRGraph. ir.VisitFuncsBottomUp(typecheck.Target.Decls, func(list []*ir.Func, recursive bool) { for _, n := range list { - p.VisitIR(n, recursive) + p.VisitIR(n) } }) } // VisitIR traverses the body of each ir.Func and use NodeMap to determine if // we need to add an edge from ir.Func and any node in the ir.Func body. -func (p *Profile) VisitIR(fn *ir.Func, recursive bool) { +func (p *Profile) VisitIR(fn *ir.Func) { g := p.WeightedCG if g.IRNodes == nil { -- 2.50.0