mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/internal/obj: move the "unary destination" tables from asm to obj/*
Have the implementations of each architecture declare the one-operand, destination-writing instructions instead of splitting the information between there and asm. Change-Id: I44899435011a4a7a398ed03c0801e9f81cc8c905 Reviewed-on: https://go-review.googlesource.com/6490 Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
dac3f486ac
commit
8974fb9ba5
6 changed files with 130 additions and 133 deletions
|
|
@ -250,6 +250,7 @@ type LinkArch struct {
|
|||
Assemble func(*Link, *LSym)
|
||||
Follow func(*Link, *LSym)
|
||||
Progedit func(*Link, *Prog)
|
||||
UnaryDst map[int]bool // Instruction takes one operand, a destination.
|
||||
Minlc int
|
||||
Ptrsize int
|
||||
Regsize int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue