convopt: fix potential bug with modulo shifts, improve cost calculation for optimizab...
[libfirm] / ir / be / bedbgout.c
index d1e2b4a..9afc506 100644 (file)
@@ -38,16 +38,16 @@ 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(const ir_entity *ent)
@@ -105,7 +105,7 @@ static dbg_handle *create_null_dbgout_module(void)
        return &null_handle;
 }
 
-BE_REGISTER_MODULE_CONSTRUCTOR(be_init_dbgout);
+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");