* 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();
/**
* 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];
}
buf[sizeof(buf) - 1] = '\0';
- if (obst)
- obstack_printf(obst, "%s", buf);
- else
- be_emit_irprintf("%s", buf);
+ be_emit_string(buf);
} /* stabs_variable */
/**