summaryrefslogtreecommitdiff
path: root/6/main.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-12-18 23:30:37 -0800
committerOri Bernstein <ori@eigenstate.org>2014-12-18 23:32:19 -0800
commitb1eb90e0d575a1016ef176a8cea9735e5420fb8a (patch)
tree0d50d5597e7ee37048c18e710f5dc66f818cc0b5 /6/main.c
parent23f37b9d690c2c40819606a0e8be63c7206bfc1e (diff)
downloadmc-b1eb90e0d575a1016ef176a8cea9735e5420fb8a.tar.gz
Get rid of the 'exports' stab.
This should simplify a number of chunks of code.
Diffstat (limited to '6/main.c')
-rw-r--r--6/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/6/main.c b/6/main.c
index 878fb9b..ec31b7b 100644
--- a/6/main.c
+++ b/6/main.c
@@ -163,7 +163,6 @@ int main(int argc, char **argv)
tyinit(globls);
tokinit(ctx.args[i]);
file = mkfile(ctx.args[i]);
- file->file.exports = mkstab();
file->file.globls = globls;
yyparse();
@@ -171,7 +170,7 @@ int main(int argc, char **argv)
if (debugopt['T'])
dump(file, stdout);
infer(file);
- tagexports(file->file.exports, 0);
+ tagexports(file->file.globls, 0);
/* after all type inference */
if (debugopt['t'])
dump(file, stdout);