Commit f09e60a5 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

cleanup: Remove code duplication for implementing get_irg_graph_nr().

parent 998a7d33
......@@ -347,17 +347,14 @@ int (is_ir_graph)(const void *thing)
return is_ir_graph_(thing);
}
#ifdef DEBUG_libfirm
long get_irg_graph_nr(const ir_graph *irg)
{
#ifdef DEBUG_libfirm
return irg->graph_nr;
}
#else
long get_irg_graph_nr(const ir_graph *irg)
{
return PTR_TO_INT(irg);
}
#endif
}
size_t get_irg_idx(const ir_graph *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