]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/pgo: drop unused 'recursive' argument
authorMichael Pratt <mpratt@google.com>
Tue, 28 Feb 2023 21:21:27 +0000 (16:21 -0500)
committerGopher Robot <gobot@golang.org>
Wed, 1 Mar 2023 15:36:12 +0000 (15:36 +0000)
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>

src/cmd/compile/internal/pgo/irgraph.go

index 21850440896027841f84730c1da3e727151ca874..a8d50089296f0d097bde3428990dda3d185b8052 100644 (file)
@@ -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 {