]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: reorganize ir/fmt.go
authorRuss Cox <rsc@golang.org>
Sat, 5 Dec 2020 05:02:46 +0000 (00:02 -0500)
committerRuss Cox <rsc@golang.org>
Mon, 7 Dec 2020 20:40:34 +0000 (20:40 +0000)
commit158c9dd131db86a381535a902b54bc7f610a8c97
tree1006320bf2aaa143ea796fd4432f9dc31b6c2af1
parenta79742f39a906a52fce4873895599298c0699743
[dev.regabi] cmd/compile: reorganize ir/fmt.go

This code is a few layer of abstraction stacked up on top
of each other, and they're hard to see all at the same time
because the file is pretty mixed up. As much as I try to avoid
code rearrangement to keep history, this one is long overdue.

A followup CL will cut out some of the layers, and the diff will be
much clearer what's going on with the code ordered with
callers near callees, as it is now.

Passes buildall w/ toolstash -cmp.

Change-Id: Iffc49d43cf4be9fab47e2dd59a5f98930573350f
Reviewed-on: https://go-review.googlesource.com/c/go/+/275773
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/ir/fmt.go
src/cmd/compile/internal/ir/node.go