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: default avatarBrad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: default avatarDave Cheney <dave@cheney.net>
parent 22ef687d
...@@ -10,13 +10,13 @@ import "encoding/binary" ...@@ -10,13 +10,13 @@ import "encoding/binary"
type ArchFamily byte type ArchFamily byte
const ( const (
AMD64 ArchFamily = '6' AMD64 ArchFamily = iota
ARM ArchFamily = '5' ARM
ARM64 ArchFamily = '7' ARM64
I386 ArchFamily = '8' I386
MIPS64 ArchFamily = '0' MIPS64
PPC64 ArchFamily = '9' PPC64
S390X ArchFamily = 'z' S390X
) )
// Arch represents an individual architecture. // Arch represents an individual architecture.
...@@ -30,6 +30,7 @@ type Arch struct { ...@@ -30,6 +30,7 @@ type Arch struct {
PtrSize int PtrSize int
RegSize int RegSize int
// MinLC is the minimum length of an instruction code.
MinLC int 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