projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
998a7d3
)
cleanup: Remove code duplication for implementing get_irg_graph_nr().
author
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 21 Dec 2012 18:01:30 +0000
(19:01 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Fri, 21 Dec 2012 18:01:30 +0000
(19:01 +0100)
ir/ir/irgraph.c
patch
|
blob
|
history
diff --git
a/ir/ir/irgraph.c
b/ir/ir/irgraph.c
index
5247dd1
..
8ecf734
100644
(file)
--- a/
ir/ir/irgraph.c
+++ b/
ir/ir/irgraph.c
@@
-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)
{