summaryrefslogtreecommitdiff
path: root/6/gengas.c
diff options
context:
space:
mode:
Diffstat (limited to '6/gengas.c')
-rw-r--r--6/gengas.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/6/gengas.c b/6/gengas.c
index 16f29a4..926fff9 100644
--- a/6/gengas.c
+++ b/6/gengas.c
@@ -298,7 +298,7 @@ static size_t writelit(FILE *fd, Htab *strtab, Node *v, Type *ty)
if (hthas(strtab, &v->lit.strval)) {
lbl = htget(strtab, &v->lit.strval);
} else {
- lbl = genlocallblstr(buf, sizeof buf);
+ lbl = genlblstr(buf, sizeof buf);
htput(strtab, &v->lit.strval, strdup(lbl));
}
fprintf(fd, "\t.quad %s\n", lbl);
@@ -307,6 +307,9 @@ static size_t writelit(FILE *fd, Htab *strtab, Node *v, Type *ty)
case Lfunc:
die("Generating this shit ain't ready yet ");
break;
+ case Ljtab:
+ die("jtab as data?");
+ break;
case Llbl:
die("Can't generate literal labels, ffs. They're not data.");
break;