allow several odd weak combinations
[libfirm] / ir / be / bedbgout.c
index fd03dd1..a85cd05 100644 (file)
@@ -24,9 +24,7 @@
  * @date    11.9.2006
  * @version $Id: bestabs.c 17143 2008-01-02 20:56:33Z beck $
  */
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
 
 #include "be_dbgout_t.h"
 #include "bemodule.h"
@@ -64,9 +62,9 @@ void be_dbg_types(void) {
                handle->ops->types(handle);
 }
 
-void be_dbg_variable(struct obstack *obst, ir_entity *ent) {
+void be_dbg_variable(ir_entity *ent) {
        if (handle->ops->variable)
-               handle->ops->variable(handle, obst, ent);
+               handle->ops->variable(handle, ent);
 }
 
 void be_dbg_set_dbg_info(dbg_info *dbgi) {
@@ -81,9 +79,6 @@ void be_dbg_open(void) {
        handle = selected_dbgout_module();
 }
 
-void be_register_dbgout_module(const char *name,
-                               be_create_dbgout_module_func func);
-
 void be_register_dbgout_module(const char *name,
                                be_create_dbgout_module_func func)
 {
@@ -104,7 +99,7 @@ void be_init_dbgout(void) {
 
        be_add_module_list_opt(be_grp, "debuginfo", "debug info format",
                               &dbgout_modules, (void**) &selected_dbgout_module);
-       be_register_dbgout_module("null", create_null_dbgout_module);
+       be_register_dbgout_module("none", create_null_dbgout_module);
 }
 
 BE_REGISTER_MODULE_CONSTRUCTOR(be_init_dbgout);