]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/types: remove Markdcl/Pushdcl/Popdcl
authorMatthew Dempsky <mdempsky@google.com>
Fri, 2 Dec 2022 02:00:42 +0000 (18:00 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 26 Jan 2023 21:56:56 +0000 (21:56 +0000)
commit13c70b12d7562a841cd03cfce7ecc8f14a8190e8
treed56cba0e91a5c59448213b1d1ce6e95180462238
parentf0b1563535bf548d989d7bd4647dd698232e4467
cmd/compile/internal/types: remove Markdcl/Pushdcl/Popdcl

Sym.Def used to be used for symbol resolution during the
old (pre-types2) typechecker. But since moving to types2-based IR
construction, we haven't really had a need for Sym.Def to ever refer
to anything but the package-scope definition, because types2 handles
symbol resolution for us.

This CL finally removes the Markdcl/Pushdcl/Popdcl functions that have
been a recurring source of issues in the past.

Change-Id: I2b012a0f17203efdd724ebd1e9314bd128cc2d61
Reviewed-on: https://go-review.googlesource.com/c/go/+/458625
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Robert Griesemer <gri@google.com>
src/cmd/compile/internal/base/debug.go
src/cmd/compile/internal/reflectdata/alg.go
src/cmd/compile/internal/ssagen/abi.go
src/cmd/compile/internal/typecheck/dcl.go
src/cmd/compile/internal/types/scope.go
src/cmd/compile/internal/types/sym.go