]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/link: remove Gotype and File fields from sym.Symbol
authorThan McIntosh <thanm@google.com>
Mon, 27 Apr 2020 16:19:57 +0000 (12:19 -0400)
committerThan McIntosh <thanm@google.com>
Tue, 28 Apr 2020 18:54:37 +0000 (18:54 +0000)
commit43a85a39bf4204267c20e60c2e32383a0e506347
tree000fa98f7cbd5a792b8cb019209f006a4ec2ff2c
parent0612e78f0f9b5381b8690891a91fd05b450a0a91
[dev.link] cmd/link: remove Gotype and File fields from sym.Symbol

Remove the 'Gotype' field from sym.Symbol, as it is now no longer
used. Store the loader.Sym for a symbol as a field in sym.Symbol
("SymIdx"). Then remove sym.Symbol 'File' field, and replace the field
accesses in question with calls into the loader instead.

Change-Id: I01c5504425006b8d3fe77fac2b69a86e198c7a5a
Reviewed-on: https://go-review.googlesource.com/c/go/+/230304
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Reviewed-by: Jeremy Faller <jeremy@golang.org>
src/cmd/link/internal/ld/lib.go
src/cmd/link/internal/ld/xcoff.go
src/cmd/link/internal/loader/loader.go
src/cmd/link/internal/sym/sizeof_test.go
src/cmd/link/internal/sym/symbol.go