Use new scope instead of empty statement.
[libfirm] / ir / ir / iredges.c
index b1ee09b..d110fbd 100644 (file)
@@ -1,20 +1,6 @@
 /*
- * Copyright (C) 1995-2011 University of Karlsruhe.  All right reserved.
- *
  * This file is part of libFirm.
- *
- * This file may be distributed and/or modified under the terms of the
- * GNU General Public License version 2 as published by the Free Software
- * Foundation and appearing in the file LICENSE.GPL included in the
- * packaging of this file.
- *
- * Licensees holding valid libFirm Professional Edition licenses may use
- * this file in accordance with the libFirm Commercial License.
- * Agreement provided with the Software.
- *
- * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
- * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE.
+ * Copyright (C) 2012 University of Karlsruhe.
  */
 
 /**
@@ -168,22 +154,6 @@ void edges_init_graph_kind(ir_graph *irg, ir_edge_kind_t kind)
        }
 }
 
-const ir_edge_t *get_irn_edge_kind(const ir_node *src, int pos, ir_edge_kind_t kind)
-{
-       ir_graph *irg = get_irn_irg(src);
-       if (edges_activated_kind(irg, kind)) {
-               irg_edge_info_t *info = get_irg_edge_info(irg, kind);
-               ir_edge_t       key;
-
-               key.src = (ir_node *)src;
-               key.pos = pos;
-
-               return ir_edgeset_find(&info->edges, &key);
-       }
-
-       return NULL;
-}
-
 /**
  * Change the out count
  *
@@ -197,7 +167,7 @@ static inline void edge_change_cnt(ir_node *tgt, ir_edge_kind_t kind, int ofs)
 }
 
 /**
- * Verify the edge list of a node, ie. ensure it's a loop:
+ * Verify the edge list of a node, i.e. ensure it's a loop:
  * head -> e_1 -> ... -> e_n -> head
  */
 static inline void verify_list_head(ir_node *irn, ir_edge_kind_t kind)