aboutsummaryrefslogtreecommitdiff
path: root/src/liblink/obj6.c
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2015-01-29 23:50:10 -0500
committerRuss Cox <rsc@golang.org>2015-02-11 20:36:27 +0000
commiteb1774fa19d1027a8c25a5030429bb162dace95d (patch)
treecddd95b85d74ac1d21c785384822527d9aca2b51 /src/liblink/obj6.c
parent81a3f291f0721fee5dee6cd012cfdc7e4ee41a04 (diff)
downloadgo-eb1774fa19d1027a8c25a5030429bb162dace95d.tar.xz
cmd/gc: factor newly-portable code into gc directory
This isn't everything, but it's a start. Still producing bit-identical compiler output. The semantics of the old back ends is preserved, even when they are probably buggy. There are some TODOs in gc/gsubr.c to remove special cases to preserve bugs in 5g and 8g. Change-Id: I28ae295fbfc94ef9df43e13ab96bd6fc2f194bc4 Reviewed-on: https://go-review.googlesource.com/3802 Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/liblink/obj6.c')
-rw-r--r--src/liblink/obj6.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/src/liblink/obj6.c b/src/liblink/obj6.c
index cddc723bf2..546c89d53c 100644
--- a/src/liblink/obj6.c
+++ b/src/liblink/obj6.c
@@ -35,18 +35,6 @@
#include "../cmd/6l/6.out.h"
#include "../runtime/stack.h"
-static void
-nopout(Prog *p)
-{
- p->as = ANOP;
- p->from.type = TYPE_NONE;
- p->from.reg = 0;
- p->from.name = 0;
- p->to.type = TYPE_NONE;
- p->to.reg = 0;
- p->to.name = 0;
-}
-
static void nacladdr(Link*, Prog*, Addr*);
static int