mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile: eliminate arch-specific typedefs
Arch backends already provide us Widthint and Widthptr, which is ample information to figure out how to define the universal "int", "uint", and "uintptr" types. No need for providing a generic typedef mechanism beyond that. Change-Id: I35c0c17a67c80605a9208b93d77d6960b2cbb17d Reviewed-on: https://go-review.googlesource.com/20153 Run-TryBot: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Dave Cheney <dave@cheney.net> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
0024101b2d
commit
a40b27e304
9 changed files with 35 additions and 115 deletions
|
|
@ -305,12 +305,6 @@ const (
|
|||
Ecomplit = 1 << 11 // type in composite literal
|
||||
)
|
||||
|
||||
type Typedef struct {
|
||||
Name string
|
||||
Etype EType
|
||||
Sameas EType
|
||||
}
|
||||
|
||||
type Sig struct {
|
||||
name string
|
||||
pkg *Pkg
|
||||
|
|
@ -670,7 +664,6 @@ type Arch struct {
|
|||
Thechar int
|
||||
Thestring string
|
||||
Thelinkarch *obj.LinkArch
|
||||
Typedefs []Typedef
|
||||
REGSP int
|
||||
REGCTXT int
|
||||
REGCALLX int // BX
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue