From: Matthias Braun Date: Wed, 13 Apr 2011 12:12:53 +0000 (+0200) Subject: remove r_keep_alive and let keep_alive decide irg based on the node X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=5bc78d88ae1e64522c533088db47bebd38de3d28;p=libfirm remove r_keep_alive and let keep_alive decide irg based on the node --- diff --git a/include/libfirm/ircons.h b/include/libfirm/ircons.h index 2d0a7a5b8..340efdbbd 100644 --- a/include/libfirm/ircons.h +++ b/include/libfirm/ircons.h @@ -1726,7 +1726,6 @@ FIRM_API void set_r_store(ir_graph *irg, ir_node *store); * @param ka The node to keep alive. */ FIRM_API void keep_alive(ir_node *ka); -FIRM_API void r_keep_alive(ir_graph *irg, ir_node *ka); /* --- initialize and finalize IR construction --- */ diff --git a/ir/ir/ircons.c b/ir/ir/ircons.c index 810f225bf..19d883311 100644 --- a/ir/ir/ircons.c +++ b/ir/ir/ircons.c @@ -716,14 +716,10 @@ void set_store(ir_node *store) set_r_store(current_ir_graph, store); } -void r_keep_alive(ir_graph *irg, ir_node *ka) -{ - add_End_keepalive(get_irg_end(irg), ka); -} - void keep_alive(ir_node *ka) { - r_keep_alive(current_ir_graph, ka); + ir_graph *irg = get_irn_irg(ka); + add_End_keepalive(get_irg_end(irg), ka); } void ir_set_uninitialized_local_variable_func(