]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/internal/obj: add Prog.SetFrom3{Reg,Const}
authorJosh Bleecher Snyder <josharian@gmail.com>
Thu, 7 Jan 2021 22:01:29 +0000 (14:01 -0800)
committerJosh Bleecher Snyder <josharian@gmail.com>
Thu, 25 Feb 2021 23:19:16 +0000 (23:19 +0000)
commita61524d1033632f733f69bf6635e767d70d95cdd
tree4dc51195c94d9ba847240c3bb62f8ac298f86cd5
parent5f15af111cb40c3ac154be88288abd381e6f61e2
cmd/internal/obj: add Prog.SetFrom3{Reg,Const}

These are the the most common uses, and they reduce line noise.

I don't love adding new deprecated APIs,
but since they're trivial wrappers,
it'll be very easy to update them along with the rest.
No functional changes; passes toolstash-check.

Change-Id: I691a8175cfef9081180e463c63f326376af3f3a6
Reviewed-on: https://go-review.googlesource.com/c/go/+/296009
Trust: Josh Bleecher Snyder <josharian@gmail.com>
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/asm/internal/asm/asm.go
src/cmd/compile/internal/amd64/ssa.go
src/cmd/compile/internal/arm/ssa.go
src/cmd/compile/internal/arm64/ssa.go
src/cmd/compile/internal/ppc64/ssa.go
src/cmd/compile/internal/s390x/ssa.go
src/cmd/compile/internal/x86/ssa.go
src/cmd/internal/obj/link.go