-
- Downloads
[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>
Showing
- src/cmd/compile/internal/importer/ureader.go 1 addition, 1 deletionsrc/cmd/compile/internal/importer/ureader.go
- src/cmd/compile/internal/noder/unified.go 13 additions, 10 deletionssrc/cmd/compile/internal/noder/unified.go
- src/go/internal/gcimporter/ureader.go 1 addition, 1 deletionsrc/go/internal/gcimporter/ureader.go
- src/internal/pkgbits/encoder.go 4 additions, 0 deletionssrc/internal/pkgbits/encoder.go
Please register or sign in to comment