From: Christoph Mallon Date: Sat, 11 Oct 2008 19:24:12 +0000 (+0000) Subject: Remove the unused parameter const arch_env_t *arch_env from be_liveness_nodes_live_at(). X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=adcf0289765130dc4df17d4c1505b8439fb8b6d0;p=libfirm Remove the unused parameter const arch_env_t *arch_env from be_liveness_nodes_live_at(). [r22722] --- diff --git a/ir/be/beirgmod.c b/ir/be/beirgmod.c index d747fe244..0ac481cd6 100644 --- a/ir/be/beirgmod.c +++ b/ir/be/beirgmod.c @@ -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) { diff --git a/ir/be/belive.c b/ir/be/belive.c index 2c204aef2..58c55212d 100644 --- a/ir/be/belive.c +++ b/ir/be/belive.c @@ -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) { diff --git a/ir/be/belive.h b/ir/be/belive.h index 92bb1c800..02f51a8b6 100644 --- a/ir/be/belive.h +++ b/ir/be/belive.h @@ -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);