mirror of
https://github.com/golang/go
synced 2024-11-12 02:20:23 -07:00
cmd/link: remove Link.Nsymbol
It was just a funny way of saying len(Ctxt.Allsym) by now. Change-Id: Iff75e73c9f7ec4ba26cfef479bbd05d7dcd172f5 Reviewed-on: https://go-review.googlesource.com/20973 Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
b6fe2c2c20
commit
74a3b205eb
@ -178,7 +178,6 @@ type Link struct {
|
||||
HashVersion map[symVer]*LSym
|
||||
|
||||
Allsym []*LSym
|
||||
Nsymbol int32
|
||||
Tlsg *LSym
|
||||
Libdir []string
|
||||
Library []*Library
|
||||
|
@ -215,7 +215,7 @@ func Ldmain() {
|
||||
archive()
|
||||
if Debug['v'] != 0 {
|
||||
fmt.Fprintf(&Bso, "%5.2f cpu time\n", obj.Cputime())
|
||||
fmt.Fprintf(&Bso, "%d symbols\n", Ctxt.Nsymbol)
|
||||
fmt.Fprintf(&Bso, "%d symbols\n", len(Ctxt.Allsym))
|
||||
fmt.Fprintf(&Bso, "%d liveness data\n", liveness)
|
||||
}
|
||||
|
||||
|
@ -171,7 +171,6 @@ func linknewsym(ctxt *Link, symb string, v int) *LSym {
|
||||
s.Got = -1
|
||||
s.Name = symb
|
||||
s.Version = int16(v)
|
||||
ctxt.Nsymbol++
|
||||
ctxt.Allsym = append(ctxt.Allsym, s)
|
||||
|
||||
return s
|
||||
|
Loading…
Reference in New Issue
Block a user