X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbestabs.c;h=baee9c3e0c6a18578eff41038efbe308eb4a3474;hb=d300330b1e6df8c8914b8fb70cf38ee1c8ca2634;hp=17140bedcc1c35ff0e7d5cbd2bb3c4b5f6fbb331;hpb=379fd05b0fb269dd9b9105810de1ce565b18e446;p=libfirm diff --git a/ir/be/bestabs.c b/ir/be/bestabs.c index 17140bedc..baee9c3e0 100644 --- a/ir/be/bestabs.c +++ b/ir/be/bestabs.c @@ -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 */ /**