/*
- * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
return ifg->impl->cliques_iter_size;
}
-static void *regs_irn_data_init(ir_phase *ph, ir_node *irn, void *data)
+static void *regs_irn_data_init(ir_phase *ph, const ir_node *irn, void *data)
{
coloring_t *coloring = (coloring_t *) ph;
(void) data;
const ir_node *node_a = *(ir_node **)a;
const ir_node *node_b = *(ir_node **)b;
- long nr_a = get_irn_node_nr(node_a);
- long nr_b = get_irn_node_nr(node_b);
+ long nr_a = get_irn_idx(node_a);
+ long nr_b = get_irn_idx(node_b);
return QSORT_CMP(nr_a, nr_b);
}