Turn if cascade into switch.
[libfirm] / ir / be / be_dbgout_t.h
index caf0301..19498b1 100644 (file)
  * @brief   Debug output support.
  * @author  Michael Beck
  * @date    11.9.2006
- * @version $Id: be_dbgout.h 17143 2008-01-02 20:56:33Z beck $
  */
 #ifndef FIRM_BE_BE_DBGOUT_T_H
 #define FIRM_BE_BE_DBGOUT_T_H
 
+#include "be_dbgout.h"
 #include "obst.h"
-#include "beabi_t.h"
 #include "firm_types.h"
+#include "be_types.h"
 
 typedef struct dbg_handle dbg_handle;
 
@@ -40,14 +40,14 @@ typedef struct debug_ops {
        /** close the stabs handler. */
        void (*close)(dbg_handle *handle);
 
-       /** start a new source object (compilation unit) */
-       void (*so)(dbg_handle *handle, const char *filename);
+       /** start a compilation unit */
+       void (*unit_begin)(dbg_handle *handle, const char *filename);
 
-       /** Main Program */
-       void (*main_program)(dbg_handle *handle);
+       /** end compilation unit */
+       void (*unit_end)(dbg_handle *handle);
 
        /** dumps the stabs for a method begin */
-       void (*method_begin)(dbg_handle *handle, ir_entity *ent, const be_stack_layout_t *layout);
+       void (*method_begin)(dbg_handle *handle, const ir_entity *ent);
 
        /** dumps the stabs for a method end */
        void (*method_end)(dbg_handle *handle);
@@ -56,7 +56,7 @@ typedef struct debug_ops {
        void (*types)(dbg_handle *handle);
 
        /** dump a variable in the global type */
-       void (*variable)(dbg_handle *h, ir_entity *ent);
+       void (*variable)(dbg_handle *h, const ir_entity *ent);
 
        /** notify debug info about position change */
        void (*set_dbg_info)(dbg_handle *h, dbg_info *dbgi);