updated header
[libfirm] / ir / ana / irextbb.c
index 70727d0..3ae9015 100644 (file)
@@ -1,22 +1,33 @@
 /*
- * Project:     libFIRM
- * File name:   ir/ana/irextbb.c
- * Purpose:     Extended basis block support.
- * Author:      Michael Beck
- * Modified by:
- * Created:     5.2005
- * CVS-ID:      $Id$
- * Copyright:   (c) 2002-2005 Universität Karlsruhe
- * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
+ * Copyright (C) 1995-2007 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.
  */
 
 /**
- * @file irextbb.c
- *
- *  Computes extended basic blocks.
- *
- *  @author Michael Beck
+ * @file
+ * @brief    Extended basis block support.
+ * @author   Michael Beck
+ * @date     5.2005
+ * @version  $Id$
  */
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
 #include "irextbb_t.h"
 #include "irgwalk.h"
 #include "irnode_t.h"
@@ -53,20 +64,6 @@ static void allocate_extblk(ir_node *block, env_t *env)
   set_irn_link(block, NULL);
 }
 
-/**
- * add a block to an extended block
- */
-static void addto_extblk(ir_extblk *extblk, ir_node *block)
-{
-  /* link all blocks belonging to this extended block */
-  set_irn_link(block, extblk->link);
-
-  extblk->link = block;
-  extblk->visited++;
-
-  set_Block_extbb(block, extblk);
-}
-
 /**
  * Returns the number of block successors.
  * we are interested only in 1, 2 and >2.