simplify and cleanup execfreq API
[libfirm] / ir / be / besched.c
index 922dccb..276a21d 100644 (file)
@@ -21,7 +21,6 @@
  * @file
  * @brief       Scheduling utilities for nodes in Blocks and Blocks.
  * @author      Sebastian Hack
- * @version     $Id$
  */
 #include "config.h"
 
@@ -33,7 +32,6 @@
 #include "irgraph_t.h"
 #include "iredges_t.h"
 #include "ircons.h"
-#include "irextbb.h"
 #include "irgmod.h"
 #include "debug.h"
 
@@ -52,7 +50,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 +155,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 +163,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");