Commit 4916e65d authored by Matthias Braun's avatar Matthias Braun
Browse files

remove unused be_get_frame_entity()

parent 8f0c4090
......@@ -674,17 +674,6 @@ static bool be_has_frame_entity(const ir_node *irn)
return be_is_FrameAddr(irn);
}
ir_entity *be_get_frame_entity(const ir_node *irn)
{
if (be_has_frame_entity(irn)) {
const be_frame_attr_t *a = (const be_frame_attr_t*)get_irn_generic_attr_const(irn);
return a->ent;
} else if (be_is_MemPerm(irn)) {
return be_get_MemPerm_in_entity(irn, 0);
}
return NULL;
}
void be_set_MemPerm_in_entity(const ir_node *irn, int n, ir_entity *ent)
{
const be_memperm_attr_t *attr = (const be_memperm_attr_t*)get_irn_generic_attr_const(irn);
......@@ -848,7 +837,13 @@ int be_get_IncSP_align(const ir_node *irn)
static ir_entity *be_node_get_frame_entity(const ir_node *irn)
{
return be_get_frame_entity(irn);
if (be_has_frame_entity(irn)) {
const be_frame_attr_t *a = (const be_frame_attr_t*)get_irn_generic_attr_const(irn);
return a->ent;
} else if (be_is_MemPerm(irn)) {
return be_get_MemPerm_in_entity(irn, 0);
}
return NULL;
}
static void be_node_set_frame_offset(ir_node *irn, int offset)
......
......@@ -343,14 +343,6 @@ ir_node *be_get_CopyKeep_op(const ir_node *cpy);
void be_set_CopyKeep_op(ir_node *cpy, ir_node *op);
/**
* Returns the frame entity of a be node.
* Try to avoid this function and better call arch_get_frame_entity!
*
* @return the frame entity used by the be node
*/
ir_entity *be_get_frame_entity(const ir_node *irn);
void be_set_MemPerm_in_entity(const ir_node *irn, int n, ir_entity* ent);
ir_entity *be_get_MemPerm_in_entity(const ir_node *irn, int n);
......
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