mirror of
https://github.com/golang/go
synced 2024-09-30 16:18:35 -06:00
cmd/compile/internal/gc: make funcsyms a []*Node
Remove another use of NodeList. Change-Id: Ice07eff862caf715f722dec7829006bf71715b07 Reviewed-on: https://go-review.googlesource.com/15432 Reviewed-by: Dave Cheney <dave@cheney.net>
This commit is contained in:
parent
8815093572
commit
a2119aca7d
@ -1499,5 +1499,5 @@ func makefuncsym(s *Sym) {
|
||||
s1 := funcsym(s)
|
||||
s1.Def = newfuncname(s1)
|
||||
s1.Def.Func.Shortname = newname(s)
|
||||
funcsyms = list(funcsyms, s1.Def)
|
||||
funcsyms = append(funcsyms, s1.Def)
|
||||
}
|
||||
|
@ -589,7 +589,7 @@ var exportlist []*Node
|
||||
|
||||
var importlist []*Node // imported functions and methods with inlinable bodies
|
||||
|
||||
var funcsyms *NodeList
|
||||
var funcsyms []*Node
|
||||
|
||||
var dclcontext uint8 // PEXTERN/PAUTO
|
||||
|
||||
|
@ -104,8 +104,6 @@ func dumpobj() {
|
||||
}
|
||||
|
||||
func dumpglobls() {
|
||||
var n *Node
|
||||
|
||||
// add globals
|
||||
for _, n := range externdcl {
|
||||
if n.Op != ONAME {
|
||||
@ -125,8 +123,7 @@ func dumpglobls() {
|
||||
ggloblnod(n)
|
||||
}
|
||||
|
||||
for l := funcsyms; l != nil; l = l.Next {
|
||||
n = l.N
|
||||
for _, n := range funcsyms {
|
||||
dsymptr(n.Sym, 0, n.Sym.Def.Func.Shortname.Sym, 0)
|
||||
ggloblsym(n.Sym, int32(Widthptr), obj.DUPOK|obj.RODATA)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user