Commit b17b9530 authored by Matthew Dempsky's avatar Matthew Dempsky

cmd/internal/sys: change ArchFamily constants to iotas

RIP architecture characters.

Change-Id: I36f53afdc311b14b9459ff3821bd6df54a057ded
Reviewed-on: https://go-review.googlesource.com/21628Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: 's avatarDave Cheney <dave@cheney.net>
parent 22ef687d
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment