diff options
| author | Than McIntosh <thanm@google.com> | 2020-04-27 13:21:48 -0400 |
|---|---|---|
| committer | Than McIntosh <thanm@google.com> | 2020-04-28 18:59:09 +0000 |
| commit | 3f408fc7fdc8156f04414b529b9194f868485c8a (patch) | |
| tree | 16710de08d66c052ca1a58652419b7cb501d817e /src/cmd/link/internal/loader | |
| parent | 12b11f3af9be5421ba330136b34efe1d8c80e1d6 (diff) | |
| download | go-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')
| -rw-r--r-- | src/cmd/link/internal/loader/loader.go | 1 |
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 |
