]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: simplify some tree traversal code
authorMatthew Dempsky <mdempsky@google.com>
Sun, 27 Dec 2020 06:00:53 +0000 (22:00 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 28 Dec 2020 07:45:00 +0000 (07:45 +0000)
commitfbc4458c068459940c63952bcc6a697728f508fc
tree93eb968a3ecd71476325f3064d9f43d0a37f1b1e
parent6c676775419b4cfc9f1a3b8959d538b81cec754e
[dev.regabi] cmd/compile: simplify some tree traversal code

When looking for referenced functions within bottomUpVisitor and
initDeps, the logic for ODOTMETH, OCALLPART, and OMETHEXPR are
basically identical, especially after previous refactorings to make
them use MethodExprName. This CL makes them exactly identical.

Passes toolstash -cmp.

Change-Id: I1f59c9be99aa9484d0397a0a6fb8ddd894a31c68
Reviewed-on: https://go-review.googlesource.com/c/go/+/280441
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/ir/scc.go
src/cmd/compile/internal/pkginit/initorder.go