]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: remove Node.{,Set}Walkdef
authorMatthew Dempsky <mdempsky@google.com>
Sat, 2 Jan 2021 11:23:49 +0000 (03:23 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Sun, 3 Jan 2021 06:16:36 +0000 (06:16 +0000)
commitbb1b6c95c2d312ec0e23a90dffd37a62f98af7ae
tree3ac6ffffd222bd631a0e5a84ae92dbe80142d023
parent57c426c9a57736d84f6ddd88d7a3306e63f66945
[dev.regabi] cmd/compile: remove Node.{,Set}Walkdef

After the previous commit, we no longer access Walkdef on anything but
ir.Names, so we can remove them from the Node interface and miniNode.

The flag bits storage should also move from miniNode.bits to
Name.flags, but the latter is already full at the moment. Leaving as a
TODO for now.

Passes toolstash -cmp.

Change-Id: I2427e4cf7bc68dc1d1529f40fb93dd9f7a9149f6
Reviewed-on: https://go-review.googlesource.com/c/go/+/281005
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/mini.go
src/cmd/compile/internal/ir/name.go
src/cmd/compile/internal/ir/node.go