summaryrefslogtreecommitdiff
path: root/src/cmd/6g/gg.h
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-12-08 22:51:55 -0500
committerRuss Cox <rsc@golang.org>2013-12-08 22:51:55 -0500
commit416746c55a6225ee946a6e02568aeb00bc49b9f2 (patch)
tree0506bf9338cc05379a11b28466e8a5bc9ae337ec /src/cmd/6g/gg.h
parentbde76bd39fef6ff7e71aac12d8703d12fa02e5f7 (diff)
downloadgo-416746c55a6225ee946a6e02568aeb00bc49b9f2.tar.gz
cmd/5g, cmd/6g, cmd/8g: use liblink
Preparation for golang.org/s/go13linker work. This CL does not build by itself. It depends on 35740044 and 35790044 and will be submitted at the same time. R=iant CC=golang-dev https://codereview.appspot.com/34590045
Diffstat (limited to 'src/cmd/6g/gg.h')
-rw-r--r--src/cmd/6g/gg.h36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/cmd/6g/gg.h b/src/cmd/6g/gg.h
index 3ef59c788..134da3682 100644
--- a/src/cmd/6g/gg.h
+++ b/src/cmd/6g/gg.h
@@ -9,48 +9,12 @@
#include "../gc/go.h"
#include "../6l/6.out.h"
-typedef struct Addr Addr;
-
-struct Addr
-{
- vlong offset;
-
- union {
- double dval;
- vlong vval;
- Prog* branch;
- char sval[NSNAME];
- } u;
-
- Sym* gotype;
- Sym* sym;
- Node* node;
- int64 width;
- uchar type;
- uchar index;
- uchar etype;
- uchar scale; /* doubles as width in DATA op */
-};
-#define A ((Addr*)0)
-
-struct Prog
-{
- short as; // opcode
- uint32 loc; // pc offset in this func
- uint32 lineno; // source line that generated this
- Addr from; // src address
- Addr to; // dst address
- Prog* link; // next instruction in this func
- void* opt; // for optimizer passes
-};
-
#define TEXTFLAG from.scale
EXTERN int32 dynloc;
EXTERN uchar reg[D_NONE];
EXTERN int32 pcloc; // instruction counter
EXTERN Strlit emptystring;
-extern char* anames[];
EXTERN Prog zprog;
EXTERN Node* newproc;
EXTERN Node* deferproc;