summaryrefslogtreecommitdiff
path: root/parse/names.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-06 02:01:15 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-06 02:01:15 -0400
commit5beec1cadbf562073ea57e65337cca33b36a4627 (patch)
tree0b6714fcf89037551d33cd228c1b9bc0c68244f0 /parse/names.c
parent3e622c8ee2d7aac48da5e8614b88aaa4ea550aae (diff)
downloadmc-5beec1cadbf562073ea57e65337cca33b36a4627.tar.gz
Don't generate function calls too many times.
We used to return the subtree of impure stores. Don't do that.
Diffstat (limited to 'parse/names.c')
-rw-r--r--parse/names.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/parse/names.c b/parse/names.c
index 9c09db9..5ecca05 100644
--- a/parse/names.c
+++ b/parse/names.c
@@ -12,7 +12,13 @@
#include "parse.h"
static char *optab[] = {
-#define O(op) #op,
+#define O(op, pure) #op,
+#include "ops.def"
+#undef O
+};
+
+int ispureop[] = {
+#define O(op, pure) pure,
#include "ops.def"
#undef O
};