aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/gc/main.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2021-01-17 02:53:18 -0800
committerMatthew Dempsky <mdempsky@google.com>2021-01-19 03:02:52 +0000
commita2f825c542bc62b9d4341080302ed309cd3daa97 (patch)
tree1440cf7e0cd167b8f7236494f1100b0b610eaea4 /src/cmd/compile/internal/gc/main.go
parent4a4212c0e59dee4458be2f5c85262e54f127c500 (diff)
downloadgo-a2f825c542bc62b9d4341080302ed309cd3daa97.tar.gz
go-a2f825c542bc62b9d4341080302ed309cd3daa97.zip
[dev.regabi] cmd/compile: directly create go.map and go.track symbols
These symbols are implementation details and don't correspond to Go source symbols, so directly create them as linker symbols and get rid of their pseudo packages. Passes toolstash -cmp w/ -gcflags=all=-abiwrap. Change-Id: I2e97374c21f3e909f6d350f15e7a5ed3574cadf4 Reviewed-on: https://go-review.googlesource.com/c/go/+/284372 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Trust: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/compile/internal/gc/main.go')
-rw-r--r--src/cmd/compile/internal/gc/main.go7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/cmd/compile/internal/gc/main.go b/src/cmd/compile/internal/gc/main.go
index f758933d79..726a0685d5 100644
--- a/src/cmd/compile/internal/gc/main.go
+++ b/src/cmd/compile/internal/gc/main.go
@@ -96,13 +96,6 @@ func Main(archInit func(*ssagen.ArchInfo)) {
ir.Pkgs.Itab = types.NewPkg("go.itab", "go.itab")
ir.Pkgs.Itab.Prefix = "go.itab" // not go%2eitab
- ir.Pkgs.Track = types.NewPkg("go.track", "go.track")
- ir.Pkgs.Track.Prefix = "go.track" // not go%2etrack
-
- // pseudo-package used for map zero values
- ir.Pkgs.Map = types.NewPkg("go.map", "go.map")
- ir.Pkgs.Map.Prefix = "go.map"
-
// pseudo-package used for methods with anonymous receivers
ir.Pkgs.Go = types.NewPkg("go", "")