]> Cypherpunks repositories - gostls13.git/commit
cmd/compile/internal/pkginit: remove dependency on typecheck.Resolve
authorMatthew Dempsky <mdempsky@google.com>
Tue, 20 Dec 2022 20:00:36 +0000 (12:00 -0800)
committerGopher Robot <gobot@golang.org>
Thu, 26 Jan 2023 00:28:25 +0000 (00:28 +0000)
commit6d4101ea68477bf1d762f7466523de0b95bec0ca
tree6f248c5e9315ab048a304c43dd45835e167d011c
parent4a0e84a1be52d9a57574de0421d9aa38522a0b71
cmd/compile/internal/pkginit: remove dependency on typecheck.Resolve

The use of typecheck.Resolve was previously necessary to interoperate
with the non-unified frontend, because it hooked into iimport. It's no
longer necessary with unified IR, where we can just lookup the
".inittask" symbol and access Def directly.

Updates #57410.

Change-Id: I73bdfd53f65988ececd2b777743cd8b591a6db48
Reviewed-on: https://go-review.googlesource.com/c/go/+/458616
Auto-Submit: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/pkginit/init.go