]> Cypherpunks repositories - gostls13.git/commit
cmd/internal/obj: clean up Biobuf
authorDave Cheney <dave@cheney.net>
Fri, 1 May 2015 01:51:47 +0000 (11:51 +1000)
committerDave Cheney <dave@cheney.net>
Fri, 1 May 2015 18:37:04 +0000 (18:37 +0000)
commite9ab343f0e762951b771fe68cb841a8c03f339d7
tree24991893fee10c0c6a5a64ed4b3c481dd8246af6
parentbc44b818a6c3ce69e2cb7a4b942d42c41e764af1
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>
12 files changed:
src/cmd/8g/galign.go
src/cmd/asm/internal/asm/endtoend_test.go
src/cmd/asm/main.go
src/cmd/internal/asm/asm.go
src/cmd/internal/asm/lexbody.go
src/cmd/internal/gc/obj.go
src/cmd/internal/gc/subr.go
src/cmd/internal/obj/arm/obj5.go
src/cmd/internal/obj/arm64/obj7.go
src/cmd/internal/obj/objfile.go
src/cmd/internal/obj/ppc64/obj9.go
src/cmd/internal/obj/util.go