summaryrefslogtreecommitdiff
path: root/src/liblink
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2014-04-16 14:36:44 -0700
committerIan Lance Taylor <iant@golang.org>2014-04-16 14:36:44 -0700
commit18d8146620a1150dde420f7060a96459d8fa2249 (patch)
tree99306304d20fbe61df7c80b9c9c56b361cd008ac /src/liblink
parentbc23140a4fe44718db247cb32d3f7ffa86235219 (diff)
downloadgo-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.c5
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;