expose some critical bearch functions for inlining
[libfirm] / ir / be / besched.c
index 922dccb..2546ef1 100644 (file)
  * @file
  * @brief       Scheduling utilities for nodes in Blocks and Blocks.
  * @author      Sebastian Hack
- * @version     $Id$
  */
 #include "config.h"
 
 #include <stdlib.h>
 
-#include "irprintf.h"
-#include "irgwalk.h"
 #include "firm_types.h"
-#include "irgraph_t.h"
 #include "iredges_t.h"
 #include "ircons.h"
-#include "irextbb.h"
 #include "irgmod.h"
 #include "debug.h"
 
@@ -52,7 +47,6 @@
 
 static void sched_renumber(const ir_node *block)
 {
-       ir_node *irn;
        sched_info_t *inf;
        sched_timestep_t step = SCHED_INITIAL_GRANULARITY;
 
@@ -158,7 +152,7 @@ void be_register_scheduler(const char *name, schedule_func func)
 {
        if (scheduler == NULL)
                scheduler = func;
-       be_add_module_to_list(&schedulers, name, func);
+       be_add_module_to_list(&schedulers, name, (void*)func);
 }
 
 void be_schedule_graph(ir_graph *irg)
@@ -166,7 +160,7 @@ void be_schedule_graph(ir_graph *irg)
        scheduler(irg);
 }
 
-BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched);
+BE_REGISTER_MODULE_CONSTRUCTOR(be_init_sched)
 void be_init_sched(void)
 {
        lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");