mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
[dev.link] cmd/link: delete ctxt.Reachparent
It is no longer needed as we have converted the fieldtrack pass to using the loader. Also free loader.Reachparent after we are done with it. Change-Id: Ibc4b29f282e1e4aea363a1b549755e31f84b0295 Reviewed-on: https://go-review.googlesource.com/c/go/+/229322 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
9570fc8f71
commit
245a2f5780
6 changed files with 5 additions and 18 deletions
|
|
@ -2128,7 +2128,7 @@ func (l *Loader) PropagateLoaderChangesToSymbols(toconvert []Sym, anonVerReplace
|
|||
|
||||
// ExtractSymbols grabs the symbols out of the loader for work that hasn't been
|
||||
// ported to the new symbol type.
|
||||
func (l *Loader) ExtractSymbols(syms *sym.Symbols, rp map[*sym.Symbol]*sym.Symbol) {
|
||||
func (l *Loader) ExtractSymbols(syms *sym.Symbols) {
|
||||
// Add symbols to the ctxt.Syms lookup table. This explicitly skips things
|
||||
// created via loader.Create (marked with versions less than zero), since
|
||||
// if we tried to add these we'd wind up with collisions. We do, however,
|
||||
|
|
@ -2148,13 +2148,6 @@ func (l *Loader) ExtractSymbols(syms *sym.Symbols, rp map[*sym.Symbol]*sym.Symbo
|
|||
}
|
||||
}
|
||||
|
||||
for i, s := range l.Reachparent {
|
||||
if i == 0 {
|
||||
continue
|
||||
}
|
||||
rp[l.Syms[i]] = l.Syms[s]
|
||||
}
|
||||
|
||||
// Provide lookup functions for sym.Symbols.
|
||||
l.SymLookup = func(name string, ver int) *sym.Symbol {
|
||||
i := l.LookupOrCreateSym(name, ver)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue