cmd/internal/sys: change ArchFamily constants to iotas

RIP architecture characters.

Change-Id: I36f53afdc311b14b9459ff3821bd6df54a057ded
Reviewed-on: https://go-review.googlesource.com/21628
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
Matthew Dempsky 2016-04-06 20:06:41 -07:00
parent 22ef687da8
commit b17b95301a

View File

@ -10,13 +10,13 @@ import "encoding/binary"
type ArchFamily byte
const (
AMD64 ArchFamily = '6'
ARM ArchFamily = '5'
ARM64 ArchFamily = '7'
I386 ArchFamily = '8'
MIPS64 ArchFamily = '0'
PPC64 ArchFamily = '9'
S390X ArchFamily = 'z'
AMD64 ArchFamily = iota
ARM
ARM64
I386
MIPS64
PPC64
S390X
)
// Arch represents an individual architecture.
@ -30,6 +30,7 @@ type Arch struct {
PtrSize int
RegSize int
// MinLC is the minimum length of an instruction code.
MinLC int
}