]> Cypherpunks repositories - gostls13.git/commit
[dev.regabi] cmd/compile: remove unneeded packages from ir.Pkgs
authorMatthew Dempsky <mdempsky@google.com>
Sun, 17 Jan 2021 10:16:58 +0000 (02:16 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Sun, 17 Jan 2021 22:16:41 +0000 (22:16 +0000)
commit7e0fa38aad7bb402fcd08a66adc6492818c79dcf
tree76f7715ccc64edb9785448c1b5a2f52f2dbb29ae
parent99a5db11acc48794b703bee395a08848d49da41c
[dev.regabi] cmd/compile: remove unneeded packages from ir.Pkgs

ir.Pkgs.Itablink isn't used anymore. (I don't recall what it was ever
used for.)

ir.Pkgs.Race and ir.Pkgs.Msan are only needed in exactly only place,
so just create them on demand there, the same way that we create
"main" on demand.

Change-Id: I3474bb949f71cd40c7a462b9f4a369adeacde0d6
Reviewed-on: https://go-review.googlesource.com/c/go/+/284230
Trust: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
src/cmd/compile/internal/gc/main.go
src/cmd/compile/internal/ir/symtab.go
src/cmd/compile/internal/reflectdata/reflect.go