[dev.regabi] cmd/compile: unexport Node.RawCopy

RawCopy breaks the invariant that ir.Orig depends on for
allowing nodes to omit keeping their own orig fields.
Avoid surprises by unexporting it.

The only use in package gc was removed in the previous CL.
This one is a straight global search and replace RawCopy -> rawCopy.

Change-Id: Ia99c0f4665bf7ed4f878cc44456d5fbdf33bab8d
Reviewed-on: https://go-review.googlesource.com/c/go/+/274293
Trust: Russ Cox <rsc@golang.org>
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
This commit is contained in:
Russ Cox 2020-11-30 21:20:45 -05:00
parent 4da41fb3f8
commit ecff7628ea
8 changed files with 58 additions and 58 deletions

View file

@ -28,7 +28,7 @@ type Node interface {
SetPos(x src.XPos)
// For making copies. Mainly used by Copy and SepCopy.
RawCopy() Node
rawCopy() Node
// Abstract graph structure, for generic traversals.
Op() Op