Commit e927f294 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Remove the unused parameter const arch_env_t *env from arch_is_register_operand().

[r22688]
parent 91f9514a
......@@ -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;
}
......
......@@ -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
......
......@@ -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 = ", ";
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment