Commit 1875c10b authored by Christoph Mallon's avatar Christoph Mallon
Browse files

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

[r22682]
parent 819977d4
......@@ -125,9 +125,9 @@ arch_inverse_t *arch_get_inverse(const ir_node *irn, int i, arch_inverse_t *inve
}
}
int arch_possible_memory_operand(const arch_env_t *env, const ir_node *irn, unsigned int i) {
int arch_possible_memory_operand(const ir_node *irn, unsigned int i)
{
const arch_irn_ops_t *ops = get_irn_ops(irn);
(void)env; // TODO remove parameter
if(ops->possible_memory_operand) {
return ops->possible_memory_operand(irn, i);
......
......@@ -141,7 +141,7 @@ int arch_get_sp_bias(ir_node *irn);
extern int arch_get_op_estimated_cost(const arch_env_t *env, const ir_node *irn);
arch_inverse_t *arch_get_inverse(const ir_node *irn, int i, arch_inverse_t *inverse, struct obstack *obstack);
extern int arch_possible_memory_operand(const arch_env_t *env, const ir_node *irn, unsigned int i);
int arch_possible_memory_operand(const ir_node *irn, unsigned int i);
extern void arch_perform_memory_operand(const arch_env_t *env, ir_node *irn, ir_node *spill, unsigned int i);
/**
......
......@@ -201,7 +201,7 @@ static void memory_operand_walker(ir_node *irn, void *env) {
assert(src && "outedges broken!");
if (get_nodes_block(src) == block && arch_possible_memory_operand(aenv, src, pos)) {
if (get_nodes_block(src) == block && arch_possible_memory_operand(src, pos)) {
arch_perform_memory_operand(aenv, src, spill, pos);
}
}
......
Markdown is supported
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