]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: remove Link.Nsymbol
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Mon, 21 Mar 2016 06:55:04 +0000 (19:55 +1300)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Mon, 21 Mar 2016 07:57:25 +0000 (07:57 +0000)
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>

src/cmd/link/internal/ld/link.go
src/cmd/link/internal/ld/pobj.go
src/cmd/link/internal/ld/sym.go

index 1b042ba1dcffc76bd1006b1a8a5cab8ba639d1cf..81d2a58d85f57f3292a0deb1f924bfb21ac695f8 100644 (file)
@@ -178,7 +178,6 @@ type Link struct {
        HashVersion map[symVer]*LSym
 
        Allsym     []*LSym
-       Nsymbol    int32
        Tlsg       *LSym
        Libdir     []string
        Library    []*Library
index eeb012d9f81b86d423cd875c0bcbfe11a0bb8532..f48b54efda9090a7924c67c7c5bbb8dccc3ecdd4 100644 (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)
        }
 
index 86e0544f0d92d6932df80e3e302209ef0f4a7377..3c4dc5587f91ddd7dea7aa3f07885a6bfe46a996 100644 (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