]> Cypherpunks repositories - gostls13.git/commit
cmd/link: type alias sym.LoaderSym and loader.Sym
authorMatthew Dempsky <mdempsky@google.com>
Fri, 1 Sep 2023 20:12:49 +0000 (13:12 -0700)
committerGopher Robot <gobot@golang.org>
Fri, 1 Sep 2023 20:39:56 +0000 (20:39 +0000)
commit9b0140a6954d65e7a83a7d45a72995ca87301f69
treec6a8749fb021dd294c5e61d84bf86d11cd36c287
parentc9bb7ce2d7132debe50f024c50ed4ee1460d6af5
cmd/link: type alias sym.LoaderSym and loader.Sym

Rather than making these two different types, we can type alias them
together. This will ease converting cmd/internal/dwarf to use generics
in a subsequent CL.

The one unfortunate quirk is that while we'd currently like loader.Sym
to be the authoritative type, to break the cycle we have to instead
make loader.Sym an alias of sym.LoaderSym.

Change-Id: I6dde0d492ca89a478c2470c426bb4eed3393d680
Reviewed-on: https://go-review.googlesource.com/c/go/+/525195
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/link/internal/ld/dwarf.go
src/cmd/link/internal/loader/loader.go
src/cmd/link/internal/sym/compilation_unit.go