aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/gc/main.go
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2020-12-21 02:22:42 -0500
committerRuss Cox <rsc@golang.org>2020-12-22 19:32:03 +0000
commit3b12c6dc089f63d0fe2eeda27e65feb51c5e36d4 (patch)
tree834a992e140e33e84c2d16cbf2b228adda79865b /src/cmd/compile/internal/gc/main.go
parent7c8f5356abd7aadf32b028ce76a8a76cd5438258 (diff)
downloadgo-3b12c6dc089f63d0fe2eeda27e65feb51c5e36d4.tar.gz
go-3b12c6dc089f63d0fe2eeda27e65feb51c5e36d4.zip
[dev.regabi] cmd/compile: separate typecheck more cleanly
Abstract the typecheck API a bit more so that it is easier to move into a new package. Change-Id: Ia0a0146151fa7f6073113e68a2c3f6e42a5d0ad8 Reviewed-on: https://go-review.googlesource.com/c/go/+/279303 Trust: Russ Cox <rsc@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/gc/main.go')
-rw-r--r--src/cmd/compile/internal/gc/main.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/gc/main.go b/src/cmd/compile/internal/gc/main.go
index 343ad9d1d9..2a5ff3f5fd 100644
--- a/src/cmd/compile/internal/gc/main.go
+++ b/src/cmd/compile/internal/gc/main.go
@@ -212,6 +212,10 @@ func Main(archInit func(*Arch)) {
Target = new(ir.Package)
+ NeedFuncSym = makefuncsym
+ NeedITab = func(t, iface *types.Type) { itabname(t, iface) }
+ NeedRuntimeType = addsignat // TODO(rsc): typenamesym for lock?
+
// initialize types package
// (we need to do this to break dependencies that otherwise
// would lead to import cycles)