]> Cypherpunks repositories - gostls13.git/commit
[dev.link] cmd/internal/goobj2, cmd/link: add and use new Sym accessors
authorCherry Zhang <cherryyz@google.com>
Wed, 1 Apr 2020 00:56:10 +0000 (20:56 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 1 Apr 2020 18:27:54 +0000 (18:27 +0000)
commit6dab0942a43039b8dea365ba8629cdc519cfb143
treeb9950c98fcc2dd81e3822f32831f81e9cd4be539
parentff29f97437765abb4dd47a239c3cca274175d5e0
[dev.link] cmd/internal/goobj2, cmd/link: add and use new Sym accessors

Along the line with Reloc and Aux, use new-style accessors for
the Sym type. They avoid reading unnecessary fields, and also
look nicer (to me).

Change-Id: Ie37c5149a6edb2184724b3dfa26952015e74c085
Reviewed-on: https://go-review.googlesource.com/c/go/+/226798
Reviewed-by: Jeremy Faller <jeremy@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
src/cmd/internal/goobj2/objfile.go
src/cmd/link/internal/loader/loader.go