From 7049fd074fbdc3d4ebd52d735c4e759d9bcec1c4 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 11 Oct 2008 20:00:45 +0000 Subject: [PATCH] Remove the unused parameter const arch_env_t *arch_env from be_set_phi_reg_req(). [r22739] --- ir/be/beabi.c | 2 +- ir/be/benode.c | 4 +--- ir/be/benode_t.h | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ir/be/beabi.c b/ir/be/beabi.c index 690d362cb..f72f55189 100644 --- a/ir/be/beabi.c +++ b/ir/be/beabi.c @@ -2366,7 +2366,7 @@ void be_abi_fix_stack_nodes(be_abi_irg_t *env) len = ARR_LEN(phis); for(i = 0; i < len; ++i) { ir_node *phi = phis[i]; - be_set_phi_reg_req(walker_env.arch_env, phi, &env->sp_req); + be_set_phi_reg_req(phi, &env->sp_req); be_set_phi_flags(walker_env.arch_env, phi, arch_irn_flags_ignore | arch_irn_flags_modify_sp); arch_set_irn_register(phi, env->arch_env->sp); } diff --git a/ir/be/benode.c b/ir/be/benode.c index a4f5ca520..586357637 100644 --- a/ir/be/benode.c +++ b/ir/be/benode.c @@ -1342,11 +1342,9 @@ const arch_register_req_t *phi_get_irn_reg_req(const ir_node *irn, int pos) return &attr->req; } -void be_set_phi_reg_req(const arch_env_t *arch_env, ir_node *node, - const arch_register_req_t *req) +void be_set_phi_reg_req(ir_node *node, const arch_register_req_t *req) { phi_attr_t *attr; - (void) arch_env; assert(mode_is_datab(get_irn_mode(node))); diff --git a/ir/be/benode_t.h b/ir/be/benode_t.h index 8794a2109..9d4d6def5 100644 --- a/ir/be/benode_t.h +++ b/ir/be/benode_t.h @@ -513,8 +513,7 @@ void be_phi_handler_reset(void); /** * Set the register requirements for a phi node. */ -void be_set_phi_reg_req(const arch_env_t *arch_env, ir_node *phi, - const arch_register_req_t *req); +void be_set_phi_reg_req(ir_node *phi, const arch_register_req_t *req); /* * Set flags for a phi node -- 2.20.1