Commit f78cd2c2 authored by yb9976's avatar yb9976
Browse files

Moved function to appropriate file.

This API function is now also visible for the optimize variant.
parent 53621afc
......@@ -1236,16 +1236,6 @@ void firm_finish_debugger(void)
del_set(bp_idents);
}
/**
* A gdb helper function to print firm objects.
*/
const char *gdb_node_helper(void *firm_object)
{
static char buf[1024];
ir_snprintf(buf, sizeof(buf), "%+F", firm_object);
return buf;
}
const char *gdb_tarval_helper(void *tv_object)
{
static char buf[1024];
......
......@@ -1106,6 +1106,16 @@ dbg_info *(get_irn_dbg_info)(const ir_node *n)
return get_irn_dbg_info_(n);
}
/**
* A gdb helper function to print firm objects.
*/
const char *gdb_node_helper(void *firm_object)
{
static char buf[1024];
ir_snprintf(buf, sizeof(buf), "%+F", firm_object);
return buf;
}
ir_switch_table *ir_new_switch_table(ir_graph *irg, size_t n_entries)
{
struct obstack *obst = get_irg_obstack(irg);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment