]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.regabi] cmd/compile: unexport Node.RawCopy
authorRuss Cox <rsc@golang.org>
Tue, 1 Dec 2020 02:20:45 +0000 (21:20 -0500)
committerRuss Cox <rsc@golang.org>
Tue, 1 Dec 2020 12:34:56 +0000 (12:34 +0000)
commitecff7628ead3b0191f5fe191864ee47fcc90bb92
treec63a3dc7129ec94a397fc73f885e90d071c72a6f
parent4da41fb3f8aa2e81b6ed371b617643042ba5e170
[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>
src/cmd/compile/internal/ir/copy.go
src/cmd/compile/internal/ir/expr.go
src/cmd/compile/internal/ir/func.go
src/cmd/compile/internal/ir/mini.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