aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/obj/objfile.go
diff options
context:
space:
mode:
authorHeschi Kreinick <heschi@google.com>2017-02-17 16:52:16 -0500
committerHeschi Kreinick <heschi@google.com>2017-03-01 00:29:23 +0000
commitac7761e1a4c04154b557fa2294e0778bbf9373f9 (patch)
tree56c362e3c1f163566941df87b9f7b5f93be8ac51 /src/cmd/internal/obj/objfile.go
parentac4a86523c2521555b9ea104157fcc8cf5ce79f5 (diff)
downloadgo-ac7761e1a4c04154b557fa2294e0778bbf9373f9.tar.xz
cmd/compile, cmd/asm: remove Link.Plists
Link.Plists never contained more than one Plist, and sometimes none. Passing around the Plist being worked on is straightforward and makes the data flow easier to follow. Change-Id: I79cb30cb2bd3d319fdbb1dfa5d35b27fcb748e5c Reviewed-on: https://go-review.googlesource.com/37169 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/cmd/internal/obj/objfile.go')
-rw-r--r--src/cmd/internal/obj/objfile.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/cmd/internal/obj/objfile.go b/src/cmd/internal/obj/objfile.go
index 96122fb233..be8b2b40c9 100644
--- a/src/cmd/internal/obj/objfile.go
+++ b/src/cmd/internal/obj/objfile.go
@@ -119,14 +119,6 @@ import (
"sort"
)
-// The Go and C compilers, and the assembler, call writeobj to write
-// out a Go object file. The linker does not call this; the linker
-// does not write out object files.
-func Writeobjdirect(ctxt *Link, b *bufio.Writer) {
- Flushplist(ctxt)
- WriteObjFile(ctxt, b)
-}
-
// objWriter writes Go object files.
type objWriter struct {
wr *bufio.Writer