]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: stop changing Field.Sym for parameters
authorMatthew Dempsky <mdempsky@google.com>
Tue, 12 Sep 2023 00:45:37 +0000 (17:45 -0700)
committerGopher Robot <gobot@golang.org>
Tue, 12 Sep 2023 15:41:15 +0000 (15:41 +0000)
commitd9aca84da0556dea8a1c48e1bbd46f726dab9535
tree37193efdaae7f515d974d9859a3be3ba7c9ba40f
parente924ea03cc7651cffdec9636a0d79d54eb6e7e0d
cmd/compile: stop changing Field.Sym for parameters

Field.Sym now always contains the original symbol as it appeared in Go
source, so we don't need OrigSym anymore.

Instead, when the mangled name is desired, Field.Nname.Sym() can be
used instead, which is always non-nil if Nname is non-nil.

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