summaryrefslogtreecommitdiff
path: root/parse/dump.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-07-09 23:55:41 -0700
committerOri Bernstein <ori@eigenstate.org>2015-07-09 23:55:41 -0700
commit12df9f45f4f383a6bdf8939b44a3b499edee853e (patch)
tree8d288c88dffe8cdf01d266a428bd8870d3e8c581 /parse/dump.c
parent6d4651504d015f853c5ce79e77c73b5b8d48793f (diff)
downloadmc-12df9f45f4f383a6bdf8939b44a3b499edee853e.tar.gz
Refactor namespaces.
We no longer store subnamespaces in the stab node; now they're a part of the file.
Diffstat (limited to 'parse/dump.c')
-rw-r--r--parse/dump.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/parse/dump.c b/parse/dump.c
index 43b5d31..b50c406 100644
--- a/parse/dump.c
+++ b/parse/dump.c
@@ -56,7 +56,7 @@ static void outstab(Stab *st, FILE *fd, int depth)
char *ty;
Type *t;
- findentf(fd, depth, "Stab %p (super = %p, name=\"%s\")\n", st, st->super, st->ns);
+ findentf(fd, depth, "Stab %p (super = %p, name=\"%s\")\n", st, st->super, st->name);
if (!st)
return;
@@ -84,14 +84,6 @@ static void outstab(Stab *st, FILE *fd, int depth)
outsym(getdcl(st, k[i]), fd, 0);
}
free(k);
-
- /* dump sub-namespaces */
- k = htkeys(st->ns, &n);
- for (i = 0; i < n; i++) {
- findentf(fd, depth + 1, "N %s\n", (char*)k[i]);
- outstab(getns_str(st, k[i]), fd, depth + 1);
- }
- free(k);
}
void dumpstab(Stab *st, FILE *fd)