sparc: implement float->unsigned conversions
[libfirm] / ir / be / bedbgout.c
index 15e8f00..d201da8 100644 (file)
@@ -22,7 +22,6 @@
  * @brief   Stabs support.
  * @author  Michael Beck
  * @date    11.9.2006
- * @version $Id: bestabs.c 17143 2008-01-02 20:56:33Z beck $
  */
 #include "config.h"
 
@@ -38,22 +37,22 @@ void be_dbg_close(void)
                handle->ops->close(handle);
 }
 
-void be_dbg_so(const char *filename)
+void be_dbg_unit_begin(const char *filename)
 {
-       if (handle->ops->so)
-               handle->ops->so(handle, filename);
+       if (handle->ops->unit_begin)
+               handle->ops->unit_begin(handle, filename);
 }
 
-void be_dbg_main_program(void)
+void be_dbg_unit_end(void)
 {
-       if (handle->ops->main_program)
-               handle->ops->main_program(handle);
+       if (handle->ops->unit_end)
+               handle->ops->unit_end(handle);
 }
 
-void be_dbg_method_begin(ir_entity *ent, const be_stack_layout_t *layout)
+void be_dbg_method_begin(const ir_entity *ent)
 {
        if (handle->ops->method_begin)
-               handle->ops->method_begin(handle, ent, layout);
+               handle->ops->method_begin(handle, ent);
 }
 
 void be_dbg_method_end(void)
@@ -68,7 +67,7 @@ void be_dbg_types(void)
                handle->ops->types(handle);
 }
 
-void be_dbg_variable(ir_entity *ent)
+void be_dbg_variable(const ir_entity *ent)
 {
        if (handle->ops->variable)
                handle->ops->variable(handle, ent);
@@ -93,16 +92,19 @@ void be_register_dbgout_module(const char *name,
 {
        if (selected_dbgout_module == NULL)
                selected_dbgout_module = func;
-       be_add_module_to_list(&dbgout_modules, name, func);
+       be_add_module_to_list(&dbgout_modules, name, (void*)func);
 }
 
 static dbg_handle *create_null_dbgout_module(void)
 {
-       static const debug_ops null_ops;
+       static const debug_ops null_ops = {
+               NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL
+       };
        static dbg_handle null_handle = { &null_ops };
        return &null_handle;
 }
 
+BE_REGISTER_MODULE_CONSTRUCTOR(be_init_dbgout)
 void be_init_dbgout(void)
 {
        lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
@@ -111,5 +113,3 @@ void be_init_dbgout(void)
                               &dbgout_modules, (void**) &selected_dbgout_module);
        be_register_dbgout_module("none", create_null_dbgout_module);
 }
-
-BE_REGISTER_MODULE_CONSTRUCTOR(be_init_dbgout);