Remove the unused parameter const arch_env_t *arch_env from be_liveness_nodes_live_at().
authorChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 19:24:12 +0000 (19:24 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Sat, 11 Oct 2008 19:24:12 +0000 (19:24 +0000)
[r22722]

ir/be/beirgmod.c
ir/be/belive.c
ir/be/belive.h

index d747fe2..0ac481c 100644 (file)
@@ -97,7 +97,7 @@ ir_node *insert_Perm_after(be_irg_t *birg,
        DBG((dbg, LEVEL_1, "Insert Perm after: %+F\n", pos));
 
        ir_nodeset_init(&live);
-       be_liveness_nodes_live_at(lv, birg->main_env->arch_env, cls, pos, &live);
+       be_liveness_nodes_live_at(lv, cls, pos, &live);
 
        n = ir_nodeset_size(&live);
        if(n == 0) {
index 2c204ae..58c5521 100644 (file)
@@ -842,13 +842,12 @@ void be_liveness_end_of_block(const be_lv_t *lv,
 
 
 
-void be_liveness_nodes_live_at(const be_lv_t *lv, const arch_env_t *arch_env,
+void be_liveness_nodes_live_at(const be_lv_t *lv,
                                const arch_register_class_t *cls,
                                const ir_node *pos, ir_nodeset_t *live)
 {
        const ir_node *bl = is_Block(pos) ? pos : get_nodes_block(pos);
        ir_node *irn;
-       (void)arch_env; // TODO remove parameter
 
        be_liveness_end_of_block(lv, cls, bl, live);
        sched_foreach_reverse(bl, irn) {
index 92bb1c8..02f51a8 100644 (file)
@@ -170,13 +170,12 @@ void be_liveness_end_of_block(const be_lv_t *lv,
 /**
  * Compute a set of nodes which are live at another node.
  * BEWARE: This is the liveness immediately after the node,
- *         so the node itself is alive but it's operands maybe not.
- * @param arch_env The architecture environment.
+ *         so the node itself is alive but its operands maybe not.
  * @param cls      The register class to consider.
  * @param pos      The node.
  * @param live     The set to put them into.
  */
-void be_liveness_nodes_live_at(const be_lv_t *lv, const arch_env_t *arch_env,
+void be_liveness_nodes_live_at(const be_lv_t *lv,
                                const arch_register_class_t *cls,
                                const ir_node *pos, ir_nodeset_t *live);