summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.h
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2014-11-07 19:35:38 +0100
committerChristoph Mallon <mallon@cs.uni-saarland.de>2014-11-11 12:38:09 +0100
commitf0679e611cc174637df3fc798c32de3359fbf243 (patch)
tree8c98dae6ecaef4ee3d49d3f71cee1f0830d85cd0 /ir/be/beutil.h
parent7fa38f2cd8a50753ef7a1bfbe33494a82b081c91 (diff)
ir: Move get_block() from the backend into the middleend.
Diffstat (limited to 'ir/be/beutil.h')
-rw-r--r--ir/be/beutil.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/ir/be/beutil.h b/ir/be/beutil.h
index e0ac021..73bd814 100644
--- a/ir/be/beutil.h
+++ b/ir/be/beutil.h
@@ -18,23 +18,6 @@
#include "be_types.h"
/**
- * Convenient block getter.
- * Works also, if the given node is a block.
- * @param irn The node.
- * @return The block of the node, or the node itself, if the node is a
- * block.
- */
-static inline ir_node *get_block(ir_node *irn)
-{
- return is_Block(irn) ? irn : get_nodes_block(irn);
-}
-
-static inline const ir_node *get_block_const(const ir_node *irn)
-{
- return is_Block(irn) ? irn : get_nodes_block(irn);
-}
-
-/**
* Returns an array (an ARR_F) of the programs blocks in reverse postorder
* (note: caller has to free the memory with DEL_ARR_F after use;
* of course you can use ARR_LEN on the array too.)