From: Christoph Mallon Date: Fri, 6 Apr 2007 06:53:46 +0000 (+0000) Subject: Fix build: add missing typedef for ir_phase and more s/phase_t/ir_phase/ X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=be502311b3c2b169db5fa003f7e4909b4f906f3c;p=libfirm Fix build: add missing typedef for ir_phase and more s/phase_t/ir_phase/ [r12668] --- diff --git a/ir/be/beilpsched.c b/ir/be/beilpsched.c index 8c9ebdf98..a6b9d8893 100644 --- a/ir/be/beilpsched.c +++ b/ir/be/beilpsched.c @@ -122,7 +122,7 @@ typedef struct { /* The ILP scheduling environment */ typedef struct { - phase_t ph; /**< The phase */ + ir_phase ph; /**< The phase */ ir_graph *irg; /**< The current irg */ heights_t *height; /**< The heights object of the irg */ void *irg_env; /**< An environment for the irg scheduling, provided by the backend */ @@ -259,7 +259,7 @@ static int cmp_ilpsched_irn(const void *a, const void *b) { /** * In case there is no phase information for irn, initialize it. */ -static void *init_ilpsched_irn(phase_t *ph, ir_node *irn, void *old) { +static void *init_ilpsched_irn(ir_phase *ph, ir_node *irn, void *old) { be_ilpsched_irn_t *res = old ? old : phase_alloc(ph, sizeof(res[0])); if (res == old) { diff --git a/ir/common/firm_types.h b/ir/common/firm_types.h index 44e3dd9f0..e0cbb0709 100644 --- a/ir/common/firm_types.h +++ b/ir/common/firm_types.h @@ -107,4 +107,9 @@ typedef struct sn_entry *seqno_t; typedef struct ir_exec_freq ir_exec_freq, *ir_exec_freq_ptr; #endif +#ifndef IRHPASE_TYPEDEF +#define IRPHASE_TYPEDEF +typedef struct _ir_phase ir_phase; +#endif + #endif /* _FIRM_TYPES_H_ */