bechordal: Remove the write-only attribute pressure from struct border_t.
[libfirm] / ir / be / beutil.c
index 56b4d93..0e7d7b5 100644 (file)
@@ -1,27 +1,12 @@
 /*
- * Copyright (C) 1995-2008 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.
  */
 
 /**
  * @file
  * @brief       Contains some useful function for the backend.
  * @author      Sebastian Hack
- * @version     $Id$
  */
 #include "config.h"
 
@@ -54,8 +39,7 @@ void be_clear_links(ir_graph *irg)
  */
 ir_node *be_get_Proj_for_pn(const ir_node *irn, long pn)
 {
-       const ir_edge_t *edge;
-       ir_node         *proj;
+       ir_node *proj;
        assert(get_irn_mode(irn) == mode_T && "need mode_T");
 
        foreach_out_edge(irn, edge) {
@@ -68,6 +52,9 @@ ir_node *be_get_Proj_for_pn(const ir_node *irn, long pn)
        return NULL;
 }
 
+/**
+ * Block-walker: adds the visited block to a flexible array.
+ */
 static void add_to_postorder(ir_node *block, void *data)
 {
        ir_node ***list = (ir_node***) data;