From ba0b6a1f85773f6b145b41e7de84d24120766359 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Fri, 31 Mar 2006 16:55:46 +0000 Subject: [PATCH] added silence emitter for Projs and Phis --- ir/be/arm/arm_emitter.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ir/be/arm/arm_emitter.c b/ir/be/arm/arm_emitter.c index 8fb8fef24..6d4dc2ddb 100644 --- a/ir/be/arm/arm_emitter.c +++ b/ir/be/arm/arm_emitter.c @@ -1,3 +1,4 @@ +#define SILENCER /* arm emitter */ /* $Id$ */ @@ -684,7 +685,7 @@ static void emit_Jmp(ir_node *irn, void *env) { fprintf(out, "\tB BLOCK_%ld\t\t\t/* unconditional Jump */\n", get_irn_node_nr(target_block)); } -static void emit_Proj(ir_node *irn, void *env) { +static void emit_silence(ir_node *irn, void *env) { } @@ -709,6 +710,7 @@ static void arm_register_emitters(void) { #define ARM_EMIT(a) op_arm_##a->ops.generic = (op_func)emit_arm_##a #define EMIT(a) op_##a->ops.generic = (op_func)emit_##a #define BE_EMIT(a) op_be_##a->ops.generic = (op_func)emit_be_##a +#define SILENCE(a) op_##a->ops.generic = (op_func)emit_silence /* first clear the generic function pointer for all ops */ clear_irp_opcodes_generic_func(); @@ -741,12 +743,14 @@ static void arm_register_emitters(void) { /* noisy stuff */ #ifdef SILENCER - EMIT(Proj); + SILENCE(Proj); + SILENCE(Phi); #endif #undef ARM_EMIT #undef BE_EMIT #undef EMIT +#undef SILENCE } /** -- 2.20.1