]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/noder: drop unused *types.Pkg results
authorMatthew Dempsky <mdempsky@google.com>
Thu, 14 Sep 2023 03:01:56 +0000 (20:01 -0700)
committerGopher Robot <gobot@golang.org>
Thu, 14 Sep 2023 13:17:26 +0000 (13:17 +0000)
commita55ef982397acf27e1c9e56b15299dd9d82e80c2
tree4dc9860662fcae3fd4942df6b5b7b98299f97569
parentd18e9407b078001a1ed07c783bb9b624b19f6609
cmd/compile/internal/noder: drop unused *types.Pkg results

Several methods return a (*types.Pkg, *types.Sym) pair instead of just
a *types.Sym, because we used to need to preserve the *types.Pkg for
certain types so that we could write out export data for go/types to
use (which exposes these through its APIs).

But now that we write export data from the types2 representation
directly, there's no need for the rest of the compiler to be
concerned about that.

Change-Id: I6ac81a6db71b8e0795ff2f33399b839871564eb7
Reviewed-on: https://go-review.googlesource.com/c/go/+/528416
Reviewed-by: Than McIntosh <thanm@google.com>
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/compile/internal/noder/reader.go