fixed indentation
[libfirm] / ir / be / beutil.c
index 66cf3d8..6e6abf2 100644 (file)
@@ -38,7 +38,7 @@
 #include "irgopt.h"
 #include "irtools.h"
 #include "irprintf.h"
-#include "iredges.h"
+#include "iredges_t.h"
 
 #include "beutil.h"
 #include "besched.h"
@@ -49,7 +49,7 @@ pset *be_empty_set(void)
 {
        static pset *empty_set = NULL;
 
-       if(!empty_set)
+       if (!empty_set)
                empty_set = pset_new_ptr(1);
 
        assert(pset_count(empty_set) == 0);
@@ -191,3 +191,10 @@ ir_node **be_get_cfgpostorder(ir_graph *irg)
 
        return list;
 }
+
+ir_node *get_first_block_succ(const ir_node *block)
+{
+       const ir_edge_t *edge = get_irn_out_edge_first_kind(block, EDGE_KIND_BLOCK);
+       assert(edge != NULL);
+       return get_edge_src_irn(edge);
+}