mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cmd/compile/internal/gc: disable binary package export format
The new indexed package export format appears stable, and no reports of needing to revert back to binary package export. This CL disables the binary package export format by mechanically replacing 'flagiexport' with 'true', and then superficial code cleanups to keep the resulting code idiomatic. The resulting dead code is removed in a followup CL. Change-Id: Ic30d85f78778a31d279a56b9ab14e80836d50135 Reviewed-on: https://go-review.googlesource.com/c/139337 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
This commit is contained in:
parent
02b444bc1d
commit
d546bebe34
3 changed files with 9 additions and 29 deletions
|
|
@ -71,9 +71,7 @@ func fnpkg(fn *Node) *types.Pkg {
|
|||
func typecheckinl(fn *Node) {
|
||||
lno := setlineno(fn)
|
||||
|
||||
if flagiexport {
|
||||
expandInline(fn)
|
||||
}
|
||||
expandInline(fn)
|
||||
|
||||
// typecheckinl is only for imported functions;
|
||||
// their bodies may refer to unsafe as long as the package
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue