summaryrefslogtreecommitdiffhomepage
path: root/ir/be/TEMPLATE
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-10-31 09:50:23 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-10-31 09:50:23 +0100
commit87986ce09e83936ccca73c4eba29cc6354a471e2 (patch)
tree696a1281d3b22fad5daf1de05c3a10359c75a341 /ir/be/TEMPLATE
parent05f29a7b377d358c4e0d791835e5b0fe18f04797 (diff)
be: Handle emitting jump labels centrally in BE_EMITF().
Diffstat (limited to 'ir/be/TEMPLATE')
-rw-r--r--ir/be/TEMPLATE/TEMPLATE_emitter.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/ir/be/TEMPLATE/TEMPLATE_emitter.c b/ir/be/TEMPLATE/TEMPLATE_emitter.c
index 9f5a1d7..b047ce7 100644
--- a/ir/be/TEMPLATE/TEMPLATE_emitter.c
+++ b/ir/be/TEMPLATE/TEMPLATE_emitter.c
@@ -52,15 +52,6 @@ static void TEMPLATE_emit_dest_register(const ir_node *node, int pos)
emit_register(reg);
}
-/**
- * Returns the target label for a control flow node.
- */
-static void TEMPLATE_emit_cfop_target(const ir_node *node)
-{
- ir_node *block = be_emit_get_cfop_target(node);
- be_gas_emit_block_name(block);
-}
-
void TEMPLATE_emitf(const ir_node *node, const char *format, ...)
{
BE_EMITF(node, format, ap, false) {
@@ -109,11 +100,6 @@ void TEMPLATE_emitf(const ir_node *node, const char *format, ...)
break;
}
- case 'L': {
- TEMPLATE_emit_cfop_target(node);
- break;
- }
-
default:
unknown:
panic("unknown format conversion");
@@ -126,7 +112,7 @@ unknown:
*/
static void emit_TEMPLATE_Jmp(const ir_node *node)
{
- TEMPLATE_emitf(node, "jmp %L");
+ TEMPLATE_emitf(node, "jmp %L", node);
}
static void emit_be_IncSP(const ir_node *node)