]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types: remove unneeded functionality
authorMatthew Dempsky <mdempsky@google.com>
Fri, 2 Dec 2022 01:42:02 +0000 (17:42 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 26 Jan 2023 21:56:49 +0000 (21:56 +0000)
commitf0b1563535bf548d989d7bd4647dd698232e4467
tree70efca673aa9d1be7a5a17c6df668436fef51213
parentf5eb0a7a5aa3880c02dd887d5ded4b7395a91005
cmd/compile/internal/types: remove unneeded functionality

This CL removes a handful of features that were only needed for the
pre-unified frontends.

In particular, Type.Pkg was a hack for iexport so that
go/types.Var.Pkg could be precisely populated for struct fields and
signature parameters by gcimporter, but it's no longer necessary with
the unified export data format because we now write export data
directly from types2-supplied type descriptors.

Several other features (e.g., OrigType, implicit interfaces, type
parameters on signatures) are no longer relevant to the unified
frontend, because it only uses types1 to represent instantiated
generic types.

Updates #57410.

Change-Id: I84fd1da5e0b65d2ab91d244a7bb593821ee916e7
Reviewed-on: https://go-review.googlesource.com/c/go/+/458622
Reviewed-by: Keith Randall <khr@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
22 files changed:
src/cmd/compile/internal/abi/abiutils.go
src/cmd/compile/internal/compare/compare_test.go
src/cmd/compile/internal/escape/call.go
src/cmd/compile/internal/noder/reader.go
src/cmd/compile/internal/pkginit/init.go
src/cmd/compile/internal/pkginit/initAsanGlobals.go
src/cmd/compile/internal/reflectdata/alg.go
src/cmd/compile/internal/reflectdata/reflect.go
src/cmd/compile/internal/ssagen/ssa.go
src/cmd/compile/internal/test/abiutils_test.go
src/cmd/compile/internal/test/abiutilsaux_test.go
src/cmd/compile/internal/typecheck/builtin.go
src/cmd/compile/internal/typecheck/dcl.go
src/cmd/compile/internal/typecheck/func.go
src/cmd/compile/internal/typecheck/mkbuiltin.go
src/cmd/compile/internal/types/fmt.go
src/cmd/compile/internal/types/sizeof_test.go
src/cmd/compile/internal/types/type.go
src/cmd/compile/internal/types/universe.go
src/cmd/compile/internal/walk/closure.go
src/cmd/compile/internal/walk/compare.go
src/cmd/compile/internal/walk/select.go