From: Michael Beck Date: Mon, 3 Apr 2006 16:39:11 +0000 (+0000) Subject: used irtools.h X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=ffab78b6caa6f7ef41377b19f1745393df022ff7;p=libfirm used irtools.h --- diff --git a/ir/be/firm/bearch_firm.c b/ir/be/firm/bearch_firm.c index 7d4b7e643..266d3b789 100644 --- a/ir/be/firm/bearch_firm.c +++ b/ir/be/firm/bearch_firm.c @@ -20,6 +20,7 @@ #include "ircons_t.h" #include "irgwalk.h" #include "type.h" +#include "irtools.h" #include "../be_t.h" #include "../bearch.h" @@ -508,16 +509,11 @@ typedef struct _firm_code_gen_t { } firm_code_gen_t; -static void clear_link(ir_node *irn, void *data) -{ - set_irn_link(irn, NULL); -} - static void firm_prepare_graph(void *self) { firm_code_gen_t *cg = self; - irg_walk_graph(cg->irg, clear_link, localize_const_walker, NULL); + irg_walk_graph(cg->irg, firm_clear_link, localize_const_walker, NULL); irg_walk_graph(cg->irg, NULL, prepare_walker, NULL); }