summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-03-10 18:25:21 +0100
committerMatthias Braun <matze@braunis.de>2010-03-10 18:25:21 +0100
commit7c36344d22a7c306a4e216f135c974bdb9f6b943 (patch)
treecf08cc3e447a6b85337dd2e58ceb70006eaa4955 /ir/be/beutil.h
parentea75e9d38674b468f602a0699fb64b9c01254797 (diff)
- fix most of the -Wunreachable-code and -Wlogical-op warnings
- rework ir_phase API (sorry for mixing these 2 things into 1 commit) [r27285]
Diffstat (limited to 'ir/be/beutil.h')
-rw-r--r--ir/be/beutil.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/ir/be/beutil.h b/ir/be/beutil.h
index 72a81fa..0dcd29b 100644
--- a/ir/be/beutil.h
+++ b/ir/be/beutil.h
@@ -154,4 +154,10 @@ ir_node **be_get_cfgpostorder(ir_graph *irg);
*/
FILE *be_ffopen(const char *base, const char *ext, const char *mode);
-#endif /* FIRM_BE_BEUTIL_H */
+/**
+ * convenience function to return the first successor block
+ * (it is often known that there is exactly 1 successor anyway)
+ */
+ir_node *get_first_block_succ(const ir_node *block);
+
+#endif