cmd/link/internal: make ld.Bso a *bio.Writer

This is a pre requesite of CL 21722 and removes a lot of unidiomatic
boilerplate in the linker.

Change-Id: If7491b88212b2be7b0c8c588e9c196839131f8ad
Reviewed-on: https://go-review.googlesource.com/21780
Run-TryBot: Dave Cheney <dave@cheney.net>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Dave Cheney 2016-04-09 12:54:45 +10:00
parent 092ef8a2ca
commit 6fee4aa5c7
15 changed files with 102 additions and 101 deletions

View file

@ -1931,7 +1931,7 @@ func dwarfgeneratedebugsyms() {
}
if Debug['v'] != 0 {
fmt.Fprintf(&Bso, "%5.2f dwarf\n", obj.Cputime())
fmt.Fprintf(Bso, "%5.2f dwarf\n", obj.Cputime())
}
// For diagnostic messages.