Just use Ctxt.Bso instead.
Change-Id: I68f1639f0b4c238ae5499ef49e78a5d734417979
Reviewed-on: https://go-review.googlesource.com/29114
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
package gc
import (
- "bufio"
"cmd/compile/internal/ssa"
"cmd/internal/bio"
"cmd/internal/obj"
var writearchive bool
-var bstdout *bufio.Writer
-
var Nacl bool
var continpc *obj.Prog
Ctxt = obj.Linknew(Thearch.LinkArch)
Ctxt.DiagFunc = Yyerror
- bstdout = bufio.NewWriter(os.Stdout)
- Ctxt.Bso = bstdout
+ Ctxt.Bso = bufio.NewWriter(os.Stdout)
localpkg = mkpkg("")
localpkg.Prefix = "\"\""
func (x byLineno) Swap(i, j int) { x[i], x[j] = x[j], x[i] }
func Flusherrors() {
- bstdout.Flush()
+ Ctxt.Bso.Flush()
if len(errors) == 0 {
return
}