X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgmod.c;h=d7f9705cdd05a0430eda93eb3f77aaf040a97481;hb=69d11aa49aa17358468bbb2f5506ef5f009514e9;hp=14fa706f3e959f85202662d3522588d2ce5c2803;hpb=001c643d213b87d12b545ccc3a807f6c5f69fe88;p=libfirm diff --git a/ir/ir/irgmod.c b/ir/ir/irgmod.c index 14fa706f3..d7f9705cd 100644 --- a/ir/ir/irgmod.c +++ b/ir/ir/irgmod.c @@ -150,23 +150,10 @@ static void collect_phiprojs_walker(ir_node *n, void *env) { } } -/** - * clear all links, including the Phi list of blocks and Phi nodes. - */ -static void clear_node_and_phis_links(ir_node *n, void *env) { - (void) env; - - set_irn_link(n, NULL); - if (is_Block(n)) - set_Block_phis(n, NULL); - else if (is_Phi(n)) - set_Phi_next(n, NULL); -} - void collect_phiprojs(ir_graph *irg) { - assert(ir_resources_reserved(irg) & (IR_RESOURCE_IRN_LINK|IR_RESOURCE_PHI_LIST) == + assert((ir_resources_reserved(irg) & (IR_RESOURCE_IRN_LINK|IR_RESOURCE_PHI_LIST)) == (IR_RESOURCE_IRN_LINK|IR_RESOURCE_PHI_LIST)); - irg_walk_graph(irg, clear_node_and_phis_links, collect_phiprojs_walker, NULL); + irg_walk_graph(irg, firm_clear_node_and_phi_links, collect_phiprojs_walker, NULL); } /*--------------------------------------------------------------------*/