BugFix: turn_into_tuple() now works if edges are activated
[libfirm] / ir / ana / height.c
index 8a060ef..130b769 100644 (file)
@@ -1,3 +1,14 @@
+/*
+ * Project:     libFIRM
+ * File name:   ir/ana/height.c
+ * Purpose:     Compute heights of nodes inside basic blocks
+ * Author:      Sebastian Hack
+ * Modified by:
+ * Created:     19.04.2006
+ * CVS-ID:      $Id$
+ * Copyright:   (c) 2006 Universität Karlsruhe
+ * Licence:     This file protected by GPL -  GNU GENERAL PUBLIC LICENSE.
+ */
 
 #include <stdlib.h>
 #include <stdio.h>
@@ -26,7 +37,7 @@ typedef struct {
        struct list_head sink_list;
 } irn_height_t;
 
-static void irn_height_init(const phase_t *ph, const ir_node *irn, void *data)
+static void irn_height_init(phase_t *ph, const ir_node *irn, void *data)
 {
        irn_height_t *h = data;
        memset(h, 0, sizeof(h[0]));
@@ -112,7 +123,7 @@ int heights_reachable_in_block(heights_t *h, const ir_node *n, const ir_node *m)
  * @param irn The node.
  * @param bl  The block.
  */
-static unsigned compute_height(heights_t *h, const ir_node *irn, const ir_node *bl)
+static unsigned compute_height(heights_t *h, ir_node *irn, const ir_node *bl)
 {
        irn_height_t *ih = phase_get_or_set_irn_data(&h->ph, irn);
        int is_sink;