summaryrefslogtreecommitdiff
path: root/6/isel.c
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-01-06 13:29:51 -0800
committerOri Bernstein <ori@eigenstate.org>2015-01-06 13:29:51 -0800
commitc96b770a0aa93c1e7b99e5874808af85ddacc6a7 (patch)
treed60d4652014bc44186663f7afaea3338281124ae /6/isel.c
parent468265b7b2719d783afc46ea5aa7c9ffa3142970 (diff)
downloadmc-c96b770a0aa93c1e7b99e5874808af85ddacc6a7.tar.gz
Improve error messages.
This involved lots of table changes.
Diffstat (limited to '6/isel.c')
-rw-r--r--6/isel.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/6/isel.c b/6/isel.c
index 01bc81d..f2da224 100644
--- a/6/isel.c
+++ b/6/isel.c
@@ -102,11 +102,11 @@ static Loc *loc(Isel *s, Node *n)
case Lbool: l = loclit(v->lit.boolval, mode(n)); break;
case Lint: l = loclit(v->lit.intval, mode(n)); break;
default:
- die("Literal type %s should be blob", litstr(v->lit.littype));
+ die("Literal type %s should be blob", litstr[v->lit.littype]);
}
break;
default:
- die("Node %s not leaf in loc()", opstr(exprop(n)));
+ die("Node %s not leaf in loc()", opstr[exprop(n)]);
break;
}
return l;
@@ -648,7 +648,7 @@ Loc *selexpr(Isel *s, Node *n)
return r;
case Oasn: /* relabel */
- die("Unimplemented op %s", opstr(exprop(n)));
+ die("Unimplemented op %s", opstr[exprop(n)]);
break;
case Oset:
assert(exprop(args[0]) == Ovar || exprop(args[0]) == Oderef);
@@ -756,7 +756,7 @@ Loc *selexpr(Isel *s, Node *n)
case Obreak: case Ocontinue:
case Numops:
dump(n, stdout);
- die("Should not see %s in isel", opstr(exprop(n)));
+ die("Should not see %s in isel", opstr[exprop(n)]);
break;
}
return r;