commit b6b38357b4e631ba81d71e372dadc5e9511f4f78
parent 4e83633b055cf9d8b411994d3ceb27d6341c34cf
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 18 Sep 2014 07:27:55 +0200
Remove duplicated case in emit()
the code of this two cases was identicall, so it is better to use
a fall through instead.
Diffstat:
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/cc2/cgen.c b/cc2/cgen.c
@@ -66,7 +66,7 @@ emit(char op, ...)
imm = va_arg(va, int);
printf("\t%s\t%s,%d\n", opnames[op], regnames[reg1], imm);
break;
- case LDFX:
+ case ADDX: case ADCX: case LDFX:
reg1 = va_arg(va, int);
reg2 = va_arg(va, int);
off = va_arg(va, int);
@@ -80,13 +80,6 @@ emit(char op, ...)
printf("\t%s\t(%s%+d),%s\n",
opnames[op], regnames[reg1], off, regnames[reg2]);
break;
- case ADDX: case ADCX:
- reg1 = va_arg(va, int);
- reg2 = va_arg(va, int);
- off = va_arg(va, int);
- printf("\t%s\t%s,(%s%+d)\n",
- opnames[op], regnames[reg1], regnames[reg2], off);
- break;
case ADDR:
label = va_arg(va, char *);
printf("%s:\n", label);