Use the real firm_clear_link() instead of duplicating it.
authorChristoph Mallon <christoph.mallon@gmx.de>
Thu, 28 Jan 2010 19:09:16 +0000 (19:09 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Thu, 28 Jan 2010 19:09:16 +0000 (19:09 +0000)
[r27003]

ir/lower/lower_mode_b.c

index fa1ad2b..94a8d94 100644 (file)
@@ -399,12 +399,6 @@ static void lower_mode_b_walker(ir_node *node, void *env)
        }
 }
 
-static void clear_links(ir_node *node, void *env)
-{
-       (void) env;
-       set_irn_link(node, NULL);
-}
-
 void ir_lower_mode_b(ir_graph *irg, const lower_mode_b_config_t *nconfig)
 {
        ir_entity *entity = get_irg_entity(irg);
@@ -422,7 +416,7 @@ void ir_lower_mode_b(ir_graph *irg, const lower_mode_b_config_t *nconfig)
        adjust_method_type(type);
 
        set_opt_allow_conv_b(0);
-       irg_walk_graph(irg, clear_links, NULL, NULL);
+       irg_walk_graph(irg, firm_clear_link, NULL, NULL);
        irg_walk_graph(irg, lower_mode_b_walker, NULL, NULL);
 
        while(!pdeq_empty(lowered_nodes)) {