used irtools.h
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 3 Apr 2006 16:39:11 +0000 (16:39 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Mon, 3 Apr 2006 16:39:11 +0000 (16:39 +0000)
ir/be/firm/bearch_firm.c

index 7d4b7e6..266d3b7 100644 (file)
@@ -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);
 }