diff options
author | Ian Lance Taylor <iant@golang.org> | 2014-04-16 14:36:44 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2014-04-16 14:36:44 -0700 |
commit | 18d8146620a1150dde420f7060a96459d8fa2249 (patch) | |
tree | 99306304d20fbe61df7c80b9c9c56b361cd008ac /src/liblink | |
parent | bc23140a4fe44718db247cb32d3f7ffa86235219 (diff) | |
download | go-18d8146620a1150dde420f7060a96459d8fa2249.tar.gz |
liblink, cmd/gc, cmd/{5,6,8}{a,c}: rename linkwriteobj to writeobj
The name linkwriteobj is misleading because it implies that
the function has something to do with the linker, which it
does not. The name is historical: the function performs an
operation that was previously performed by the linker, but no
longer is.
LGTM=rsc
R=rsc, minux.ma
CC=golang-codereviews
https://codereview.appspot.com/88210045
Diffstat (limited to 'src/liblink')
-rw-r--r-- | src/liblink/objfile.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/liblink/objfile.c b/src/liblink/objfile.c index 0c51e795f..271620a1e 100644 --- a/src/liblink/objfile.c +++ b/src/liblink/objfile.c @@ -114,8 +114,11 @@ static char *rdstring(Biobuf*); static void rddata(Biobuf*, uchar**, int*); static LSym *rdsym(Link*, Biobuf*, char*); +// 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. void -linkwriteobj(Link *ctxt, Biobuf *b) +writeobj(Link *ctxt, Biobuf *b) { int flag; Hist *h; |