]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: remove Linklookup & Linkrlookup
authorMichael Hudson-Doyle <michael.hudson@canonical.com>
Mon, 19 Sep 2016 00:12:04 +0000 (12:12 +1200)
committerMichael Hudson-Doyle <michael.hudson@canonical.com>
Tue, 20 Sep 2016 04:12:57 +0000 (04:12 +0000)
Change-Id: I25d9f74cb52e6fd4f2ad4b1c8b7102efadbc7481
Reviewed-on: https://go-review.googlesource.com/29344
Run-TryBot: Michael Hudson-Doyle <michael.hudson@canonical.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/link/internal/ld/ldelf.go
src/cmd/link/internal/ld/sym.go

index e26be08030be15d20a1dca08d704d80de5b52fa7..1aaee1c8e5f33a1f906cb6d315da47e8facdcbff 100644 (file)
@@ -1070,7 +1070,7 @@ func readelfsym(ctxt *Link, elfobj *ElfObj, i int, sym *ElfSym, needSym int) (er
                                // local names and hidden global names are unique
                                // and should only be referenced by their index, not name, so we
                                // don't bother to add them into the hash table
-                               s = linknewsym(ctxt, sym.name, ctxt.Syms.Version)
+                               s = ctxt.Syms.newsym(sym.name, ctxt.Syms.Version)
 
                                s.Type |= obj.SHIDDEN
                        }
index 7d3797d769434bdaef32d98861a9521003ce5bb6..4908e34608d00158d310ad14b913b6e34f87bb9c 100644 (file)
@@ -132,16 +132,3 @@ func (ctxt *Link) computeTLSOffset() {
        }
 
 }
-
-func linknewsym(ctxt *Link, name string, v int) *Symbol {
-       return ctxt.Syms.newsym(name, v)
-}
-
-func Linklookup(ctxt *Link, name string, v int) *Symbol {
-       return ctxt.Syms.Lookup(name, v)
-}
-
-// read-only lookup
-func Linkrlookup(ctxt *Link, name string, v int) *Symbol {
-       return ctxt.Syms.ROLookup(name, v)
-}