mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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:
parent
4048fb8780
commit
d23cd597aa
2 changed files with 0 additions and 11 deletions
|
|
@ -2347,12 +2347,6 @@ func (l *Loader) ExtractSymbols(syms *sym.Symbols) {
|
||||||
i := l.Lookup(name, ver)
|
i := l.Lookup(name, ver)
|
||||||
return l.Syms[i]
|
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.
|
// allocSym allocates a new symbol backing.
|
||||||
|
|
|
||||||
|
|
@ -43,11 +43,6 @@ type Symbols struct {
|
||||||
// Look up the symbol with the given name and version, returning nil
|
// Look up the symbol with the given name and version, returning nil
|
||||||
// if it is not found.
|
// if it is not found.
|
||||||
ROLookup func(name string, v int) *Symbol
|
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 {
|
func NewSymbols() *Symbols {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue