+/*
+ * 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>
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]));
* @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;