Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
f09e60a5
Commit
f09e60a5
authored
Dec 21, 2012
by
Christoph Mallon
Browse files
cleanup: Remove code duplication for implementing get_irg_graph_nr().
parent
998a7d33
Changes
1
Hide whitespace changes
Inline
Side-by-side
ir/ir/irgraph.c
View file @
f09e60a5
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment