mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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:
parent
34db5f0c4d
commit
0fb82fbcce
3 changed files with 7 additions and 11 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue