From: Christian Würdig Date: Mon, 30 Apr 2007 11:51:58 +0000 (+0000) Subject: made param const X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=e1a8ef5d6769ad483407161cbfc81f7923b8a42b;p=libfirm made param const [r13561] --- diff --git a/ir/ir/irphase.c b/ir/ir/irphase.c index 70268b66c..f041a4747 100644 --- a/ir/ir/irphase.c +++ b/ir/ir/irphase.c @@ -104,7 +104,7 @@ void phase_reinit_block_irn_data(ir_phase *phase, ir_node *block) } } -ir_node *phase_get_first_node(ir_phase *phase) { +ir_node *phase_get_first_node(const ir_phase *phase) { unsigned i; for (i = 0; i < phase->n_data_ptr; ++i) @@ -114,7 +114,7 @@ ir_node *phase_get_first_node(ir_phase *phase) { return NULL; } -ir_node *phase_get_next_node(ir_phase *phase, ir_node *start) { +ir_node *phase_get_next_node(const ir_phase *phase, ir_node *start) { unsigned i; for (i = get_irn_idx(start) + 1; i < phase->n_data_ptr; ++i) diff --git a/ir/ir/irphase_t.h b/ir/ir/irphase_t.h index d3857b9da..f16135c51 100644 --- a/ir/ir/irphase_t.h +++ b/ir/ir/irphase_t.h @@ -137,7 +137,7 @@ void phase_reinit_block_irn_data(ir_phase *phase, ir_node *block); * * @return The first irn having some data assigned, NULL otherwise */ -ir_node *phase_get_first_node(ir_phase *phase); +ir_node *phase_get_first_node(const ir_phase *phase); /** * Returns the next node after @p start having some data assigned. @@ -147,7 +147,7 @@ ir_node *phase_get_first_node(ir_phase *phase); * * @return The next node after start having some data assigned, NULL otherwise */ -ir_node *phase_get_next_node(ir_phase *phase, ir_node *start); +ir_node *phase_get_next_node(const ir_phase *phase, ir_node *start); /** * Convenience macro to iterate over all nodes of a phase