summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <orib@google.com>2012-10-17 18:05:26 -0400
committerOri Bernstein <orib@google.com>2012-10-17 18:05:26 -0400
commit1ad08d5fdee3b975722f692e9222da1a0126d632 (patch)
treeb0570cb473899e5c5f7dffe3fd79260f301cf8ac /parse/dump.c
parent62f7dc8a82a51b9b043587ee0ca52c62c7420999 (diff)
downloadmc-1ad08d5fdee3b975722f692e9222da1a0126d632.tar.gz
Labels are now Lit values, not their own toplev nodes.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 1ea00c2..3267da5 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -185,6 +185,7 @@ static void outnode(Node *n, FILE *fd, int depth)
case Lint: fprintf(fd, " Lint %llu\n", n->lit.intval); break;
case Lflt: fprintf(fd, " Lflt %lf\n", n->lit.fltval); break;
case Lstr: fprintf(fd, " Lstr %s\n", n->lit.strval); break;
+ case Llbl: fprintf(fd, " Llbl %s\n", n->lit.lblval); break;
case Lfunc:
fprintf(fd, " Lfunc\n");
outnode(n->lit.fnval, fd, depth+1);
@@ -205,9 +206,6 @@ static void outnode(Node *n, FILE *fd, int depth)
fprintf(fd, ")\n");
outnode(n->func.body, fd, depth+1);
break;
- case Nlbl:
- fprintf(fd, "(lbl = %s)\n", n->lbl.name);
- break;
case Nname:
fprintf(fd, "(");
if (n->name.ns)