- moved peephole_IncSP_IncSP() to bepeephole.c, as this is a generic function and...
[libfirm] / ir / be / bestabs.c
index 17140be..baee9c3 100644 (file)
@@ -578,8 +578,9 @@ static void stabs_so(dbg_handle *handle, const char *filename) {
  * Main Program
  */
 static void stabs_main_program(dbg_handle *handle) {
-       (void) handle;
        ir_graph *irg = get_irp_main_irg();
+
+       (void) handle;
        if (irg) {
                be_emit_irprintf("\t.stabs\t\"%s\",%d,0,0,0\n", get_entity_name(get_irg_entity(irg)), N_MAIN);
                be_emit_write_line();
@@ -754,7 +755,7 @@ static void stabs_types(dbg_handle *handle) {
 /**
  * dump a variable in the global type
  */
-static void stabs_variable(dbg_handle *handle, struct obstack *obst, ir_entity *ent) {
+static void stabs_variable(dbg_handle *handle, ir_entity *ent) {
        stabs_handle *h = (stabs_handle *)handle;
        unsigned tp_num = get_type_number(h, get_entity_type(ent));
        char buf[1024];
@@ -776,10 +777,7 @@ static void stabs_variable(dbg_handle *handle, struct obstack *obst, ir_entity *
        }
        buf[sizeof(buf) - 1] = '\0';
 
-       if (obst)
-               obstack_printf(obst, "%s", buf);
-       else
-               be_emit_irprintf("%s", buf);
+       be_emit_string(buf);
 }  /* stabs_variable */
 
 /**