aboutsummaryrefslogtreecommitdiff
path: root/amd64/emit.c
diff options
context:
space:
mode:
Diffstat (limited to 'amd64/emit.c')
-rw-r--r--amd64/emit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/amd64/emit.c b/amd64/emit.c
index 9636209..2a9b9d2 100644
--- a/amd64/emit.c
+++ b/amd64/emit.c
@@ -60,7 +60,7 @@ enum {
static struct {
short op;
short cls;
- char *asm;
+ char *fmt;
} omap[] = {
{ Oadd, Ka, "+add%k %1, %=" },
{ Osub, Ka, "-sub%k %1, %=" },
@@ -393,7 +393,7 @@ emitins(Ins i, Fn *fn, FILE *f)
|| (omap[o].cls == Ka))
break;
}
- emitf(omap[o].asm, &i, fn, f);
+ emitf(omap[o].fmt, &i, fn, f);
break;
case Onop:
/* just do nothing for nops, they are inserted