aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/link/internal/loader/loader.go
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2020-04-27 13:21:48 -0400
committerThan McIntosh <thanm@google.com>2020-04-28 18:59:09 +0000
commit3f408fc7fdc8156f04414b529b9194f868485c8a (patch)
tree16710de08d66c052ca1a58652419b7cb501d817e /src/cmd/link/internal/loader/loader.go
parent12b11f3af9be5421ba330136b34efe1d8c80e1d6 (diff)
downloadgo-3f408fc7fdc8156f04414b529b9194f868485c8a.tar.xz
[dev.link] cmd/link: remove Unit field from sym.Symbol
Remove sym.Symbol 'Unit' field, replacing accesses to the field with calls into the loader instead. Change-Id: Ia1abd4c3d93036705dd624a49cb3d9cbe6a5188b Reviewed-on: https://go-review.googlesource.com/c/go/+/230307 Reviewed-by: Cherry Zhang <cherryyz@google.com> Reviewed-by: Jeremy Faller <jeremy@golang.org>
Diffstat (limited to 'src/cmd/link/internal/loader/loader.go')
-rw-r--r--src/cmd/link/internal/loader/loader.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/cmd/link/internal/loader/loader.go b/src/cmd/link/internal/loader/loader.go
index 1c687ee3e2..fb792ac059 100644
--- a/src/cmd/link/internal/loader/loader.go
+++ b/src/cmd/link/internal/loader/loader.go
@@ -2307,7 +2307,6 @@ func (l *Loader) addNewSym(i Sym, name string, ver int, unit *sym.CompilationUni
t = s.Type
}
s.Type = t
- s.Unit = unit
l.growSyms(int(i))
l.installSym(i, s)
return s