1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:54:59 -07:00

[dev.link] cmd/link: remove sym.Symbols.Newsym

No longer needed.

Change-Id: If259a956bc8edb2eb94583b06840b52344cb84be
Reviewed-on: https://go-review.googlesource.com/c/go/+/231037
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
This commit is contained in:
Cherry Zhang 2020-04-29 17:53:40 -04:00
parent 4048fb8780
commit d23cd597aa
2 changed files with 0 additions and 11 deletions

View File

@ -2347,12 +2347,6 @@ func (l *Loader) ExtractSymbols(syms *sym.Symbols) {
i := l.Lookup(name, ver)
return l.Syms[i]
}
syms.Newsym = func(name string, ver int) *sym.Symbol {
i := l.newExtSym(name, ver)
s := l.allocSym(name, ver)
l.installSym(i, s)
return s
}
}
// allocSym allocates a new symbol backing.

View File

@ -43,11 +43,6 @@ type Symbols struct {
// Look up the symbol with the given name and version, returning nil
// if it is not found.
ROLookup func(name string, v int) *Symbol
// Create a symbol with the given name and version. The new symbol
// is not added to the lookup table and is not dedup'd with existing
// symbols (if any).
Newsym func(name string, v int) *Symbol
}
func NewSymbols() *Symbols {