aboutsummaryrefslogtreecommitdiffhomepage
path: root/irdump.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-06-19 22:33:35 +0200
committerlemon <lsof@mailbox.org>2023-06-19 22:33:35 +0200
commit61367525aea8f3f11c29e628fe49768dda959cef (patch)
tree7f3f428b40086c20ebc2e7aa54f49b4394b6e820 /irdump.c
parent88bf0602d09bebbf18213fbf02821e9f63b964a8 (diff)
backend: compile comparison instrs and branches
Diffstat (limited to 'irdump.c')
-rw-r--r--irdump.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/irdump.c b/irdump.c
index 5ea7d48..cd7468f 100644
--- a/irdump.c
+++ b/irdump.c
@@ -151,12 +151,6 @@ dumpcall(struct call *call)
}
}
-static const char *opname[] = {
- "?\??",
-#define _(o,...) #o,
-#include "op.def"
-#undef _
-};
static const uchar opnarg[] = {
0,
#define _(o,n) n,
@@ -180,7 +174,7 @@ dumpinst(const struct instr *ins)
efmt("%s %%%d", clsname[ins->cls], ins - instrtab);
efmt(" = ");
}
- efmt("%s ", opname[ins->op]);
+ efmt("%s ", opnames[ins->op]);
}
for (i = 0; i < opnarg[ins->op]; ++i) {
if (i) efmt(", ");