From e927f29463f82213def5fd9086612d71d5a518cb Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 11 Oct 2008 16:31:17 +0000 Subject: [PATCH] Remove the unused parameter const arch_env_t *env from arch_is_register_operand(). [r22688] --- ir/be/bearch.c | 4 +--- ir/be/bearch.h | 4 +--- ir/be/beutil.c | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/ir/be/bearch.c b/ir/be/bearch.c index e26f7efa2..f624aadbb 100644 --- a/ir/be/bearch.c +++ b/ir/be/bearch.c @@ -187,12 +187,10 @@ void arch_put_non_ignore_regs(const arch_register_class_t *cls, bitset_t *bs) } } -int arch_is_register_operand(const arch_env_t *env, - const ir_node *irn, int pos) +int arch_is_register_operand(const ir_node *irn, int pos) { const arch_irn_ops_t *ops = get_irn_ops(irn); const arch_register_req_t *req = ops->get_irn_reg_req(irn, pos); - (void)env; // TODO remove parameter return req != NULL; } diff --git a/ir/be/bearch.h b/ir/be/bearch.h index 0c78a4664..d40c7dea6 100644 --- a/ir/be/bearch.h +++ b/ir/be/bearch.h @@ -155,14 +155,12 @@ const arch_register_req_t *arch_get_register_req(const ir_node *irn, int pos); /** * Check if an operand is a register operand. - * @param env The environment. * @param irn The node. * @param pos The position of the operand. * @return 1, if the operand is significant for register allocation, 0 * if not. */ -extern int arch_is_register_operand(const arch_env_t *env, - const ir_node *irn, int pos); +int arch_is_register_operand(const ir_node *irn, int pos); /** * Get the number of allocatable registers concerning diff --git a/ir/be/beutil.c b/ir/be/beutil.c index 8754f4d8f..53b7287e8 100644 --- a/ir/be/beutil.c +++ b/ir/be/beutil.c @@ -86,7 +86,7 @@ static void dump_allocated_block(ir_node *block, void *data) if(block != get_irg_start_block(get_irn_irg(block))) { for(i = 0, n = get_irn_arity(irn); i < n; ++i) { ir_node *op = get_irn_n(irn, i); - if(arch_is_register_operand(dump_env->env, op, -1)) { + if (arch_is_register_operand(op, -1)) { ir_fprintf(f, "%s%s", prefix, arch_register_get_name(arch_get_irn_register(env, op))); prefix = ", "; -- 2.20.1