summaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/ppc64/gsubr.go
diff options
context:
space:
mode:
authorDave Cheney <dave@cheney.net>2016-04-27 14:46:09 +1000
committerDave Cheney <dave@cheney.net>2016-04-27 06:18:46 +0000
commit8f2e780e8ac29e47466103998484c0a73df34d51 (patch)
treea0896d91cbbc4ac44df660b7292f79310df6e1f3 /src/cmd/compile/internal/ppc64/gsubr.go
parent707aed0363c31bfef761a86464a09ecf0817267e (diff)
downloadgo-git-8f2e780e8ac29e47466103998484c0a73df34d51.tar.gz
cmd/compile/internal: unexport gc.Oconv
Updates #15462 Semi automatic change with gofmt -r and hand fixups for callers outside internal/gc. All the uses of gc.Oconv outside cmd/compile/internal/gc were for the Oconv(op, 0) form, which is already handled the Op.String method. Replace the use of gc.Oconv(op, 0) with op itself, which will call Op.String via the %v or %s verb. Unexport Oconv. Change-Id: I84da2a2e4381b35f52efce427b2d6a3bccdf2526 Reviewed-on: https://go-review.googlesource.com/22496 Run-TryBot: Dave Cheney <dave@cheney.net> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Diffstat (limited to 'src/cmd/compile/internal/ppc64/gsubr.go')
-rw-r--r--src/cmd/compile/internal/ppc64/gsubr.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/compile/internal/ppc64/gsubr.go b/src/cmd/compile/internal/ppc64/gsubr.go
index eb6cd2c5e9..1137c50678 100644
--- a/src/cmd/compile/internal/ppc64/gsubr.go
+++ b/src/cmd/compile/internal/ppc64/gsubr.go
@@ -712,7 +712,7 @@ func optoas(op gc.Op, t *gc.Type) obj.As {
a := obj.AXXX
switch uint32(op)<<16 | uint32(gc.Simtype[t.Etype]) {
default:
- gc.Fatalf("optoas: no entry for op=%v type=%v", gc.Oconv(op, 0), t)
+ gc.Fatalf("optoas: no entry for op=%v type=%v", op, t)
case OEQ_ | gc.TBOOL,
OEQ_ | gc.TINT8,