summaryrefslogtreecommitdiff
path: root/6/asm.h
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-22 02:49:52 -0700
committerOri Bernstein <ori@eigenstate.org>2015-06-22 02:49:52 -0700
commita9c6f053de3a54b55fa10ad07c5a94c76e854f58 (patch)
tree085b921aa436e5ccd358740a1b0b0e9a651aa53d /6/asm.h
parent732ad41dc312266d89f33ce472b5fe23d099df19 (diff)
downloadmc-a9c6f053de3a54b55fa10ad07c5a94c76e854f58.tar.gz
Get closer to a working Plan 9 build on new 6m.
Diffstat (limited to '6/asm.h')
-rw-r--r--6/asm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/6/asm.h b/6/asm.h
index e7a801a..4d55ac4 100644
--- a/6/asm.h
+++ b/6/asm.h
@@ -76,7 +76,10 @@ struct Blob {
char isglobl;
union {
uint64_t ival;
- char *ref;
+ struct {
+ char *str;
+ char isextern;
+ } ref;
struct {
size_t len;
char *buf;
@@ -236,6 +239,7 @@ void gen(Node *file, char *out);
void gengas(Node *file, char *out);
void genp9(Node *file, char *out);
Blob *tydescblob(Type *t);
+size_t blobsz(Blob *b);
/* location generation */
extern size_t maxregid;