aboutsummaryrefslogtreecommitdiffhomepage
path: root/irdump.c
diff options
context:
space:
mode:
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(", ");