X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firphase_t.h;h=9a6e4630ab1bf3b991e36fa09abaf63be3a9e784;hb=eb47aca33f2f8c414409f3695e73277b47442334;hp=bbce563aa1b952c8f52069fe890d859edeb5960c;hpb=00c6cd4ea2df08ab09015166f8a420d0e7792110;p=libfirm diff --git a/ir/ir/irphase_t.h b/ir/ir/irphase_t.h index bbce563aa..9a6e4630a 100644 --- a/ir/ir/irphase_t.h +++ b/ir/ir/irphase_t.h @@ -39,7 +39,7 @@ struct ir_phase { void **data_ptr; /**< Map node indexes to irn data on the obstack. */ ir_graph *irg; /**< The irg this phase will we applied to. */ phase_irn_init *data_init; /**< A callback that is called to initialize newly created node data. */ - unsigned n_data_ptr; /**< The length of the data_ptr array. */ + size_t n_data_ptr; /**< The length of the data_ptr array. */ struct obstack obst; /**< The obstack where the irn phase data will be stored on. */ void *priv; /**< Some pointer private to the user of the phase. */ }; @@ -48,10 +48,10 @@ struct ir_phase { * For statistics: A type containing statistic data of a phase object. */ typedef struct { - unsigned node_slots; /**< The number of allocated node slots. */ - unsigned node_slots_used; /**< The number of used node slots, i.e. nodes that have node data. */ - unsigned node_map_bytes; /**< Number of used bytes for the node map. */ - unsigned overall_bytes; /**< Overall number of used bytes for the phase. */ + size_t node_slots; /**< The number of allocated node slots. */ + size_t node_slots_used; /**< The number of used node slots, i.e. nodes that have node data. */ + size_t node_map_bytes; /**< Number of used bytes for the node map. */ + size_t overall_bytes; /**< Overall number of used bytes for the phase. */ } phase_stat_t; /** @@ -79,7 +79,7 @@ static inline void phase_reinit_single_irn_data(ir_phase *phase, ir_node *irn, idx = get_irn_idx(irn); if (phase->data_ptr[idx]) - reinit(phase, irn, phase->data_ptr[idx]); + phase->data_ptr[idx] = reinit(phase, irn, phase->data_ptr[idx]); } /**