From 85ff02143a4502e3d7f7ee5598430454bae84c83 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 11 Oct 2008 15:26:23 +0000 Subject: [PATCH] Remove the unused parameter const arch_env_t *env from arch_get_sp_bias(). [r22680] --- ir/be/beabi.c | 3 +-- ir/be/bearch.c | 3 +-- ir/be/bearch.h | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/ir/be/beabi.c b/ir/be/beabi.c index 94c925683..58ecd1e15 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -2386,7 +2386,6 @@ void be_abi_fix_stack_nodes(be_abi_irg_t *env) */ static int process_stack_bias(be_abi_irg_t *env, ir_node *bl, int real_bias) { - const arch_env_t *arch_env = env->birg->main_env->arch_env; int omit_fp = env->call->flags.bits.try_omit_fp; ir_node *irn; int wanted_bias = real_bias; @@ -2412,7 +2411,7 @@ static int process_stack_bias(be_abi_irg_t *env, ir_node *bl, int real_bias) * If the node modifies the stack pointer by a constant offset, * record that in the bias. */ - ofs = arch_get_sp_bias(arch_env, irn); + ofs = arch_get_sp_bias(irn); if (be_is_IncSP(irn)) { /* fill in real stack frame size */ diff --git a/ir/be/bearch.c b/ir/be/bearch.c index 8807b59bd..a877992de 100644 --- a/ir/be/bearch.c +++ b/ir/be/bearch.c @@ -108,10 +108,9 @@ void arch_set_frame_entity(ir_node *irn, ir_entity *ent) ops->set_frame_entity(irn, ent); } -int arch_get_sp_bias(const arch_env_t *env, ir_node *irn) +int arch_get_sp_bias(ir_node *irn) { const arch_irn_ops_t *ops = get_irn_ops(irn); - (void)env; // TODO remove parameter return ops->get_sp_bias(irn); } diff --git a/ir/be/bearch.h b/ir/be/bearch.h index e4bbb8ea3..102af5d92 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -137,7 +137,7 @@ void arch_set_frame_offset(ir_node *irn, int bias); ir_entity *arch_get_frame_entity(const ir_node *irn); void arch_set_frame_entity(ir_node *irn, ir_entity *ent); -extern int arch_get_sp_bias(const arch_env_t *env, ir_node *irn); +int arch_get_sp_bias(ir_node *irn); extern int arch_get_op_estimated_cost(const arch_env_t *env, const ir_node *irn); extern arch_inverse_t *arch_get_inverse(const arch_env_t *env, const ir_node *irn, int i, arch_inverse_t *inverse, struct obstack *obstack); -- 2.20.1