mirror of
https://github.com/golang/go.git
synced 2025-05-31 04:02:58 +00:00
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:
parent
22ef687da8
commit
b17b95301a
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user