Commit 2992232e authored by Christoph Mallon's avatar Christoph Mallon
Browse files

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

[r22679]
parent 790bf8a4
......@@ -102,10 +102,9 @@ ir_entity *arch_get_frame_entity(const ir_node *irn)
return ops->get_frame_entity(irn);
}
void arch_set_frame_entity(const arch_env_t *env, ir_node *irn, ir_entity *ent)
void arch_set_frame_entity(ir_node *irn, ir_entity *ent)
{
const arch_irn_ops_t *ops = get_irn_ops(irn);
(void)env; // TODO remove parameter
ops->set_frame_entity(irn, ent);
}
......
......@@ -136,7 +136,7 @@ extern const char *arch_irn_flag_str(arch_irn_flags_t flag);
void arch_set_frame_offset(ir_node *irn, int bias);
ir_entity *arch_get_frame_entity(const ir_node *irn);
extern void arch_set_frame_entity(const arch_env_t *env, ir_node *irn, ir_entity *ent);
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);
extern int arch_get_op_estimated_cost(const arch_env_t *env, const ir_node *irn);
......
......@@ -555,8 +555,7 @@ static void enlarge_spillslot(spill_slot_t *slot, int otheralign, int othersize)
}
static void assign_spill_entity(const arch_env_t *arch_env, ir_node *node,
ir_entity *entity)
static void assign_spill_entity(ir_node *node, ir_entity *entity)
{
if(is_NoMem(node))
return;
......@@ -568,7 +567,7 @@ static void assign_spill_entity(const arch_env_t *arch_env, ir_node *node,
ir_node *in = get_irn_n(node, i);
assert(!is_Phi(in));
assign_spill_entity(arch_env, in, entity);
assign_spill_entity(in, entity);
}
return;
}
......@@ -576,7 +575,7 @@ static void assign_spill_entity(const arch_env_t *arch_env, ir_node *node,
/* beware: we might have Stores with Memory Proj's, ia32 fisttp for instance */
node = skip_Proj(node);
assert(arch_get_frame_entity(node) == NULL);
arch_set_frame_entity(arch_env, node, entity);
arch_set_frame_entity(node, entity);
}
/**
......@@ -585,7 +584,6 @@ static void assign_spill_entity(const arch_env_t *arch_env, ir_node *node,
*/
static void assign_spillslots(be_fec_env_t *env)
{
const arch_env_t *arch_env = env->arch_env;
int i;
int spillcount;
spill_t *spill;
......@@ -664,7 +662,7 @@ static void assign_spillslots(be_fec_env_t *env)
}
}
} else {
assign_spill_entity(arch_env, node, slot->entity);
assign_spill_entity(node, slot->entity);
}
}
......@@ -676,7 +674,7 @@ static void assign_spillslots(be_fec_env_t *env)
assert(slot->entity != NULL);
arch_set_frame_entity(arch_env, reload, slot->entity);
arch_set_frame_entity(reload, slot->entity);
}
}
......
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