simplify parsing

This commit is contained in:
Quentin Carbonneaux 2015-08-08 18:32:03 -04:00
parent 76bf96b268
commit e5c68a88ce
3 changed files with 20 additions and 49 deletions

View file

@ -138,7 +138,7 @@ eop(char *op, Ref a, Ref b, Fn *fn, FILE *f)
static void
eins(Ins i, Fn *fn, FILE *f)
{
static char *otoa[OLast] = {
static char *otoa[NOp] = {
[OAdd] = "add",
[OSub] = "sub",
[OLoad] = "mov",