summary refs log tree commit diff
path: root/lisc/emit.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-08-01 15:46:09 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2015-09-15 23:01:29 -0400
commit0d5fb419e3eda0832ee549d7958e19bb9afaa15a (patch)
treee1e9d5db0afda044050ad939f0ad8d1eea3c4232 /lisc/emit.c
parenta2a2231027d2e60777b92a52701ac33c56dd362f (diff)
downloadroux-0d5fb419e3eda0832ee549d7958e19bb9afaa15a.tar.gz
avoid keyword clash by using cons for constants
Diffstat (limited to 'lisc/emit.c')
-rw-r--r--lisc/emit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisc/emit.c b/lisc/emit.c
index 6a485a7..54f552c 100644
--- a/lisc/emit.c
+++ b/lisc/emit.c
@@ -4,7 +4,7 @@
 static void
 eref(Ref r, Fn *fn, FILE *f)
 {
-	Const *c;
+	Cons *c;
 
 	switch (rtype(r)) {
 	case RSym:
@@ -14,8 +14,8 @@ eref(Ref r, Fn *fn, FILE *f)
 	case RSlot:
 		fprintf(f, "-%d(%%rbp)", 8 * r.val);
 		break;
-	case RConst:
-		c = &fn->cst[r.val];
+	case RCons:
+		c = &fn->cons[r.val];
 		switch (c->type) {
 		case CAddr:
 			fprintf(f, "$%s", c->label);