aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal/gc/export.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2018-10-03 10:56:23 -0700
committerMatthew Dempsky <mdempsky@google.com>2018-10-03 19:24:11 +0000
commitd546bebe34960952d8555bd5b19b32f5a90476d8 (patch)
tree5033f94b65abd92396c546b5d6c6b5d08e64a13d /src/cmd/compile/internal/gc/export.go
parent02b444bc1d5f87f36a7726d0474358fb51fec13f (diff)
downloadgo-d546bebe34960952d8555bd5b19b32f5a90476d8.tar.gz
go-d546bebe34960952d8555bd5b19b32f5a90476d8.zip
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>
Diffstat (limited to 'src/cmd/compile/internal/gc/export.go')
-rw-r--r--src/cmd/compile/internal/gc/export.go10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/cmd/compile/internal/gc/export.go b/src/cmd/compile/internal/gc/export.go
index 3aa7c39067..6ee660988a 100644
--- a/src/cmd/compile/internal/gc/export.go
+++ b/src/cmd/compile/internal/gc/export.go
@@ -12,8 +12,6 @@ import (
)
var (
- flagiexport bool // if set, use indexed export data format
-
Debug_export int // if set, print debugging information about export data
)
@@ -75,11 +73,7 @@ func dumpexport(bout *bio.Writer) {
// The linker also looks for the $$ marker - use char after $$ to distinguish format.
exportf(bout, "\n$$B\n") // indicate binary export format
off := bout.Offset()
- if flagiexport {
- iexport(bout.Writer)
- } else {
- export(bout.Writer, Debug_export != 0)
- }
+ iexport(bout.Writer)
size := bout.Offset() - off
exportf(bout, "\n$$\n")
@@ -95,7 +89,7 @@ func importsym(ipkg *types.Pkg, s *types.Sym, op Op) *Node {
// declaration for all imported symbols. The exception
// is declarations for Runtimepkg, which are populated
// by loadsys instead.
- if flagiexport && s.Pkg != Runtimepkg {
+ if s.Pkg != Runtimepkg {
Fatalf("missing ONONAME for %v\n", s)
}