diff options
author | Russ Cox <rsc@golang.org> | 2020-12-05 14:46:19 -0500 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2020-12-07 20:40:46 +0000 |
commit | 3b25f3c1504cdc8f2263d68436df42042251b290 (patch) | |
tree | 1779f0f590457298655509003b38d6a820046486 /src/cmd/compile/internal/types/type.go | |
parent | 8ce2605c5b4bc64432e1711a1273f91eee3a41fc (diff) | |
download | go-3b25f3c1504cdc8f2263d68436df42042251b290.tar.gz go-3b25f3c1504cdc8f2263d68436df42042251b290.zip |
[dev.regabi] cmd/compile: simplify Op, Node, Nodes printing
nconvFmt calls base.Fatalf if mode is anything but FErr,
proving that the only formats that matter for nodes are
plain %v, %S, and %L. And the nodes formatter can only get to %v.
(%S and %v are the same; we'll clean that up separately.)
Node and Nodes can therefore ignore mode, and all the mode
code can be removed from those implementations, removing
quite a few layers of abstraction.
Op similarly only runs in one mode and can be simplified.
Passes buildall w/ toolstash -cmp.
Change-Id: Ibfd845033e9c68181a20fb81c8f3dd428463920a
Reviewed-on: https://go-review.googlesource.com/c/go/+/275775
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/types/type.go')
0 files changed, 0 insertions, 0 deletions