1
0
mirror of https://github.com/golang/go synced 2024-11-23 21:10:05 -07:00

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 <mpratt@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Michael Pratt 2023-02-28 16:21:27 -05:00 committed by Gopher Robot
parent b35ee3b046
commit a4b66b14e2

View File

@ -250,14 +250,14 @@ func (p *Profile) initializeIRGraph() {
// Bottomup walk over the function to create IRGraph. // Bottomup walk over the function to create IRGraph.
ir.VisitFuncsBottomUp(typecheck.Target.Decls, func(list []*ir.Func, recursive bool) { ir.VisitFuncsBottomUp(typecheck.Target.Decls, func(list []*ir.Func, recursive bool) {
for _, n := range list { 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 // 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. // 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 g := p.WeightedCG
if g.IRNodes == nil { if g.IRNodes == nil {