]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.unified] cmd/compile: move "has init" to private metadata
authorMatthew Dempsky <mdempsky@google.com>
Wed, 27 Jul 2022 07:33:56 +0000 (00:33 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 28 Jul 2022 07:31:53 +0000 (07:31 +0000)
commitac0844ec274bf6cfd64bc8fa1e2cc8b24c789dee
treedf6d98ed501a05f073ee446d658107a9e2118201
parentf9959460940140b280be1f5591ae38b9ab74182e
[dev.unified] cmd/compile: move "has init" to private metadata

Currently, there's a "has init" bool in the public metadata section,
which is only needed by cmd/compile; but because it's in the public
metadata section, it's known to the go/types importers too. This CL
moves it instead to the new compiler-only private metadata section
added in the last CL for the inline bodies index.

The existing bool in the public metadata section is left in place, and
just always set to false, to avoid breaking the x/tools importer. The
next time we bump the export version number, we can remove the bool
properly. But no urgency just yet.

Change-Id: I380f358652374b5a221f85020a53dc65912ddb29
Reviewed-on: https://go-review.googlesource.com/c/go/+/419676
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/importer/ureader.go
src/cmd/compile/internal/noder/unified.go
src/go/internal/gcimporter/ureader.go
src/internal/pkgbits/encoder.go