X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbedbgout.c;h=d201da8b514b65c07b859e959de259e3420c85f0;hb=5474a1c188c9d59eea2c915515980cd9cbab58d8;hp=2889cff2f959f29b2e33aed503c5f7b577eddf43;hpb=ea75e9d38674b468f602a0699fb64b9c01254797;p=libfirm diff --git a/ir/be/bedbgout.c b/ir/be/bedbgout.c index 2889cff2f..d201da8b5 100644 --- a/ir/be/bedbgout.c +++ b/ir/be/bedbgout.c @@ -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(const 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) @@ -93,17 +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); +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");