aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/noder/reader.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2022-02-28 15:07:56 -0800
committerMatthew Dempsky <mdempsky@google.com>2022-03-01 19:46:03 +0000
commit0fcb94895fa3efd9733e5ab66f5634f92cee9aa3 (patch)
tree8c45b06fd01a63d8b750e30b59bceb246baee87b /src/cmd/compile/internal/noder/reader.go
parentad523565369af0005c59232e5d2dd7359073f0f4 (diff)
downloadgo-0fcb94895fa3efd9733e5ab66f5634f92cee9aa3.tar.xz
cmd/compile/internal/typecheck: remove unused -G=0 code
The typechecking code for dealing with dot imports and redeclaration errors can be removed, as these will now always be caught by types2 instead. Even when running the typecheck on internally constructed IR, we'll never introduce new imports or redeclare identifiers. Also, Func.Shortname (and typecheck.addmethod) was only used by the -G=0 frontend. The new types2-based frontends directly associate methods with their receiver type during IR construction. Change-Id: I6578a448412141c87a0a53a6566639d9c00eeed7 Reviewed-on: https://go-review.googlesource.com/c/go/+/388537 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Trust: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Keith Randall <khr@golang.org>
Diffstat (limited to 'src/cmd/compile/internal/noder/reader.go')
0 files changed, 0 insertions, 0 deletions