diff options
| author | Dave Cheney <dave@cheney.net> | 2015-05-01 11:51:47 +1000 |
|---|---|---|
| committer | Dave Cheney <dave@cheney.net> | 2015-05-01 18:37:04 +0000 |
| commit | e9ab343f0e762951b771fe68cb841a8c03f339d7 (patch) | |
| tree | 24991893fee10c0c6a5a64ed4b3c481dd8246af6 /src/cmd/internal/obj/objfile.go | |
| parent | bc44b818a6c3ce69e2cb7a4b942d42c41e764af1 (diff) | |
| download | go-e9ab343f0e762951b771fe68cb841a8c03f339d7.tar.xz | |
cmd/internal/obj: clean up Biobuf
This is a follow up to rev 443a32e707d2 which reduces some of the
duplication between methods and functions that operate on obj.Biobuf.
obj.Biobuf has Flush and Write methods as well as helpers which duplicate
those methods, consolidate on the former and remove the latter.
Also, address a final comment from CL 9525.
Change-Id: I67deaf3a163bb489a9bb21bb39524785d7a2f6c5
Reviewed-on: https://go-review.googlesource.com/9527
Reviewed-by: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/cmd/internal/obj/objfile.go')
| -rw-r--r-- | src/cmd/internal/obj/objfile.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd/internal/obj/objfile.go b/src/cmd/internal/obj/objfile.go index 473a4bffe2..35a9ef626f 100644 --- a/src/cmd/internal/obj/objfile.go +++ b/src/cmd/internal/obj/objfile.go @@ -481,7 +481,7 @@ func wrint(b *Biobuf, sval int64) { } p[0] = uint8(v) p = p[1:] - Bwrite(b, varintbuf[:len(varintbuf)-len(p)]) + b.Write(varintbuf[:len(varintbuf)-len(p)]) } func wrstring(b *Biobuf, s string) { @@ -497,7 +497,7 @@ func wrpath(ctxt *Link, b *Biobuf, p string) { func wrdata(b *Biobuf, v []byte) { wrint(b, int64(len(v))) - Bwrite(b, v) + b.Write(v) } func wrpathsym(ctxt *Link, b *Biobuf, s *LSym) { |
