Skip to content

Commit 6f4a458

Browse files
committed
cmd/internal/obj/mips: standardize on sys.MIPS and sys.MIPS64 constants
CL 38446 introduced the use of the sys.ArchFamily type into the cmd/internal/obj/mips package and redefined the mips.Mips32 and mips.Mips64 constants in terms of their sys.ArchFamily counterparts. This CL removes these local declarations and consolidates on sys.MIPS and sys.MIPS64 respectively. Change-Id: Id7aab6c7fd0de42ff43dde605df6bd4c85a3d895 Reviewed-on: https://go-review.googlesource.com/38287 Reviewed-by: Cherry Zhang <cherryyz@google.com> Run-TryBot: Cherry Zhang <cherryyz@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
1 parent e74c6cd commit 6f4a458

File tree

2 files changed

+142
-148
lines changed

2 files changed

+142
-148
lines changed

src/cmd/internal/obj/mips/a.out.go

-6
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ package mips
3131

3232
import (
3333
"cmd/internal/obj"
34-
"cmd/internal/sys"
3534
)
3635

3736
//go:generate go run ../stringer.go -i $GOFILE -o anames.go -p mips
@@ -220,11 +219,6 @@ const (
220219
NSCHED = 20
221220
)
222221

223-
const (
224-
Mips32 = sys.MIPS
225-
Mips64 = sys.MIPS64
226-
)
227-
228222
const (
229223
C_NONE = iota
230224
C_REG

0 commit comments

Comments
 (0)