aboutsummaryrefslogtreecommitdiffhomepage
path: root/x86_64/emit.c
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64/emit.c')
-rw-r--r--x86_64/emit.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/x86_64/emit.c b/x86_64/emit.c
index 13121b3..89585b8 100644
--- a/x86_64/emit.c
+++ b/x86_64/emit.c
@@ -1171,16 +1171,6 @@ emitinstr(uchar **pcode, struct function *fn, struct block *blk, int curi, struc
Xpop(pcode, mkregoper(ins->l).reg);
break;
case Ocall:
- if (calltab.p[ins->r.i].vararg >= 0) {
- struct call *call = &calltab.p[ins->r.i];
- /* variadic functions need the caller to write num of args in sse regs to %al */
- int n = 0;
- for (int i = 0; i < call->narg; ++i)
- if (!call->abiarg[i].isstk && call->abiarg[i].reg >= XMM0)
- ++n;
- if (!n) DS("\x31\xC0"); /* XOR EAX, EAX */
- else B(0xB0), B(n); /* MOV AL, n */
- }
Xcall(pcode, KPTR, ref2oper(ins->l));
break;
case Oxvaprologue: