From e94f612a4ad856885065e896523119557b1d242f Mon Sep 17 00:00:00 2001 From: Sebastian Hack Date: Tue, 2 May 2006 14:43:24 +0000 Subject: [PATCH] Small modifications [r7679] --- ir/ir/irphase_t.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ir/ir/irphase_t.h b/ir/ir/irphase_t.h index e80ee5c7a..801f8bf80 100644 --- a/ir/ir/irphase_t.h +++ b/ir/ir/irphase_t.h @@ -15,6 +15,7 @@ #include "obstack.h" #include "irgraph_t.h" +#include "irtools.h" #include "irphase.h" #include "irtools.h" @@ -31,7 +32,7 @@ typedef struct { */ phase_stat_t *phase_stat(const phase_t *phase, phase_stat_t *stat); -typedef void (phase_irn_data_init_t)(phase_t *phase, const ir_node *irn, void *data); +typedef void (phase_irn_data_init_t)(phase_t *phase, ir_node *irn, void *data); /** * The default grow factor. @@ -152,7 +153,7 @@ static INLINE void *_phase_get_irn_data(phase_t *ph, const ir_node *irn) return idx < ph->n_data_ptr ? ph->data_ptr[idx] : NULL; } -static INLINE void *_phase_get_or_set_irn_data(phase_t *ph, const ir_node *irn) +static INLINE void *_phase_get_or_set_irn_data(phase_t *ph, ir_node *irn) { unsigned idx = get_irn_idx(irn); void *res; -- 2.20.1