mirror of
https://github.com/golang/go
synced 2024-11-23 18:30:06 -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:
parent
b35ee3b046
commit
a4b66b14e2
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user