make edges_notify_edge_kind internal API
authorMatthias Braun <matze@braunis.de>
Wed, 19 May 2010 17:00:05 +0000 (17:00 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 19 May 2010 17:00:05 +0000 (17:00 +0000)
[r27551]

include/libfirm/iredgekinds.h
ir/ir/irnode_t.h

index 87103d9..2cacdbe 100644 (file)
@@ -36,10 +36,4 @@ enum _ir_edge_kind_t {
 
 typedef enum _ir_edge_kind_t ir_edge_kind_t;
 
-/*
- * It's ugly but we need this forward ref.
- */
-
-void edges_notify_edge_kind(ir_node *src, int pos, ir_node *tgt, ir_node *old_tgt, ir_edge_kind_t kind, ir_graph *irg);
-
 #endif
index 12d9eff..03e2140 100644 (file)
@@ -32,6 +32,7 @@
 #include "irgraph_t.h"
 #include "irflag_t.h"
 #include "array.h"
+#include "iredges_t.h"
 
 /**
  * Returns the array with the ins.  The content of the array may not be
@@ -248,6 +249,9 @@ static inline ir_node *_get_irn_dep(const ir_node *node, int pos) {
        return node->deps[pos];
 }
 
+/* forward declaration outside iredges_t.h to avoid circular include problems */
+void edges_notify_edge_kind(ir_node *src, int pos, ir_node *tgt, ir_node *old_tgt, ir_edge_kind_t kind, ir_graph *irg);
+
 static inline void _set_irn_dep(ir_node *node, int pos, ir_node *dep)
 {
        ir_node *old;