]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: delete all Pconv, replace with Prog.String
authorRob Pike <r@golang.org>
Thu, 5 Mar 2015 18:39:23 +0000 (10:39 -0800)
committerRob Pike <r@golang.org>
Thu, 5 Mar 2015 19:18:46 +0000 (19:18 +0000)
commit24a43e6a7542c2aefd1e2f16f0daae8100e4bdce
tree7102dfdd47ef77116daca5f9a6ed106a0f681d31
parentd5b5d6702ad7d64f189c915225b945a2aa471a38
cmd/internal/obj: delete all Pconv, replace with Prog.String

Remove the per-achitecture formatter for Prog and replace it with
a global String method. Clean up and regularize the output. Update
tests affected by the format; some tests are made correct now when
they were broken before (and known to be).

Also, related: Change the encoding of the (R1+R2) syntax on ppc64
to be equivalent to (R1)(R2*1), which means it needs no special
handling.

Delete the now unused STRINGSZ constant.

Change-Id: I7f6654d11f80065f3914a3f19353f2f12edfe310
Reviewed-on: https://go-review.googlesource.com/6931
Reviewed-by: Russ Cox <rsc@golang.org>
18 files changed:
src/cmd/asm/internal/arch/arch.go
src/cmd/asm/internal/asm/asm.go
src/cmd/asm/internal/asm/operand_test.go
src/cmd/asm/internal/asm/parse.go
src/cmd/asm/internal/asm/testdata/arm.out
src/cmd/asm/internal/asm/testdata/ppc64.out
src/cmd/internal/asm/asm.go
src/cmd/internal/gc/go.go
src/cmd/internal/obj/arm/5.out.go
src/cmd/internal/obj/arm/list5.go
src/cmd/internal/obj/arm/obj5.go
src/cmd/internal/obj/link.go
src/cmd/internal/obj/ppc64/asm9.go
src/cmd/internal/obj/ppc64/list9.go
src/cmd/internal/obj/ppc64/obj9.go
src/cmd/internal/obj/util.go
src/cmd/internal/obj/x86/list6.go
src/cmd/internal/obj/x86/obj6.go