mirror of
https://github.com/golang/go
synced 2024-11-22 20:40:03 -07:00
cmd/link: remove unnecessary attrReachable test
Change-Id: I5a6fde3ce57be1760cc8c92910fe77beb8b9c655
GitHub-Last-Rev: 0b2f3cb3a8
GitHub-Pull-Request: golang/go#45259
Reviewed-on: https://go-review.googlesource.com/c/go/+/305169
Reviewed-by: Than McIntosh <thanm@google.com>
Trust: David Chase <drchase@google.com>
This commit is contained in:
parent
aebc0b473e
commit
a78b12aea7
@ -2538,7 +2538,7 @@ func (l *Loader) AssignTextSymbolOrder(libs []*sym.Library, intlibs []bool, exts
|
||||
for i, list := range lists {
|
||||
for _, s := range list {
|
||||
sym := Sym(s)
|
||||
if l.attrReachable.Has(sym) && !assignedToUnit.Has(sym) {
|
||||
if !assignedToUnit.Has(sym) {
|
||||
textp = append(textp, sym)
|
||||
unit := l.SymUnit(sym)
|
||||
if unit != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user