summaryrefslogtreecommitdiffhomepage
path: root/ir/be/amd64
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-04 08:07:59 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-04-05 20:44:50 +0200
commit4aacad60e2ba5c17db38e3e106a4947a21ac2983 (patch)
tree1d4b47177422cf0b36b6c0782431b75c0dfe2f88 /ir/be/amd64
parent80146aaacf50c17449e07b8aac0000e5267aed59 (diff)
beasm: Add BE_ASM_OPERAND_LABEL and tell the backends how to emit it.
Diffstat (limited to 'ir/be/amd64')
-rw-r--r--ir/be/amd64/amd64_emitter.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ir/be/amd64/amd64_emitter.c b/ir/be/amd64/amd64_emitter.c
index 20ea772..e3e3613 100644
--- a/ir/be/amd64/amd64_emitter.c
+++ b/ir/be/amd64/amd64_emitter.c
@@ -571,6 +571,11 @@ static void emit_amd64_asm_operand(ir_node const *const node, char const modifie
be_emit_char('$');
x86_emit_imm32(&op->u.imm32);
return;
+
+ case BE_ASM_OPERAND_LABEL:
+ be_emit_char('$');
+ be_emit_cfop_target_pos(node, op->op.pos);
+ return;
}
panic("invalid asm operand kind");
}