]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: implement editChildren for nodes
authorRuss Cox <rsc@golang.org>
Fri, 4 Dec 2020 02:29:23 +0000 (21:29 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 4 Dec 2020 16:52:54 +0000 (16:52 +0000)
commitbb5aa2b664331087d3230732cb0d11c8e87b9e98
tree400cbdf7a8dce1adb0d1032ed06bb44125b1deec
parent4725c3ffd1b8baf87204936e59bf00c96e3bf4a0
[dev.regabi] cmd/compile: implement editChildren for nodes

Put each node in charge of its EditChildren implementation.
This removes the final generic use of Left, SetLeft, Right, SetRight,
and so on in package ir.

Passes buildall w/ toolstash -cmp.

Change-Id: I9821cc20f5b91cc9b44eb1f386cc82f20cd6770c
Reviewed-on: https://go-review.googlesource.com/c/go/+/275376
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/func.go
src/cmd/compile/internal/ir/name.go
src/cmd/compile/internal/ir/node.go
src/cmd/compile/internal/ir/stmt.go
src/cmd/compile/internal/ir/type.go
src/cmd/compile/internal/ir/visit.go