mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile, cmd/asm: remove Link.Plists
Link.Plists never contained more than one Plist, and sometimes none. Passing around the Plist being worked on is straightforward and makes the data flow easier to follow. Change-Id: I79cb30cb2bd3d319fdbb1dfa5d35b27fcb748e5c Reviewed-on: https://go-review.googlesource.com/37169 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
ac4a86523c
commit
ac7761e1a4
9 changed files with 83 additions and 117 deletions
|
|
@ -161,16 +161,6 @@ func Addrconst(a *obj.Addr, v int64) {
|
|||
a.Offset = v
|
||||
}
|
||||
|
||||
func newplist() *obj.Plist {
|
||||
pl := obj.Linknewplist(Ctxt)
|
||||
|
||||
pc = Ctxt.NewProg()
|
||||
Clearp(pc)
|
||||
pl.Firstpc = pc
|
||||
|
||||
return pl
|
||||
}
|
||||
|
||||
// nodarg returns a Node for the function argument denoted by t,
|
||||
// which is either the entire function argument or result struct (t is a struct *Type)
|
||||
// or a specific argument (t is a *Field within a struct *Type).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue