summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bepeephole.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2014-11-23 01:39:41 +0100
committerMatthias Braun <matze@braunis.de>2014-11-25 08:25:02 +0100
commit4b9bb36a8497776cb7227392c073274ba07cfc03 (patch)
treec3f3d31e90f301c1b468ead5c8e7dd321d252167 /ir/be/bepeephole.c
parent5232416f79b797c37a880ffca283e88b828344f8 (diff)
remove arch_get_frame_entity()
Add callbacks on functions that really need them instead.
Diffstat (limited to 'ir/be/bepeephole.c')
-rw-r--r--ir/be/bepeephole.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/ir/be/bepeephole.c b/ir/be/bepeephole.c
index 505e28d..5cbe66b 100644
--- a/ir/be/bepeephole.c
+++ b/ir/be/bepeephole.c
@@ -209,12 +209,13 @@ static inline bool overlapping_regs(const arch_register_t *reg0,
}
bool be_can_move_down(ir_heights_t *heights, const ir_node *node,
- const ir_node *before)
+ const ir_node *before,
+ get_frame_entity_func get_frame_entity)
{
assert(get_nodes_block(node) == get_nodes_block(before));
assert(sched_get_time_step(node) < sched_get_time_step(before));
- const ir_entity *const entity = arch_get_frame_entity(node);
+ const ir_entity *const entity = get_frame_entity(node);
ir_node *schedpoint = sched_next(node);
while (schedpoint != before) {
@@ -244,7 +245,7 @@ bool be_can_move_down(ir_heights_t *heights, const ir_node *node,
* kinda preliminary but enough for the sparc backend. */
if (entity != NULL) {
const ir_entity *const schedpoint_entity
- = arch_get_frame_entity(schedpoint);
+ = get_frame_entity(schedpoint);
if (schedpoint_entity == entity)
return false;
if (be_is_MemPerm(schedpoint)) {