1
0
mirror of https://github.com/golang/go synced 2024-09-24 13:10:12 -06: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:
Michael Hudson-Doyle 2016-03-21 19:55:04 +13:00
parent b6fe2c2c20
commit 74a3b205eb
3 changed files with 1 additions and 3 deletions

View File

@ -178,7 +178,6 @@ type Link struct {
HashVersion map[symVer]*LSym
Allsym []*LSym
Nsymbol int32
Tlsg *LSym
Libdir []string
Library []*Library

View File

@ -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)
}

View File

@ -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