cmd/compile: remove global bout variable

Change-Id: I7054bbec080708c3a11ed62d7f6594e82aa33747
Reviewed-on: https://go-review.googlesource.com/61691
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
This commit is contained in:
Matthew Dempsky 2017-08-30 17:43:19 -07:00
parent 34db5f0c4d
commit 0fb82fbcce
3 changed files with 7 additions and 11 deletions

View file

@ -56,8 +56,7 @@ func dumpobj() {
}
func dumpobj1(outfile string, mode int) {
var err error
bout, err = bio.Create(outfile)
bout, err := bio.Create(outfile)
if err != nil {
flusherrors()
fmt.Printf("can't create %s: %v\n", outfile, err)
@ -92,7 +91,7 @@ func dumpobj1(outfile string, mode int) {
printheader()
if mode&modeCompilerObj != 0 {
dumpexport()
dumpexport(bout)
}
if writearchive {