Commit be502311 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

Fix build: add missing typedef for ir_phase and more s/phase_t/ir_phase/

[r12668]
parent d7c2b50b
......@@ -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) {
......
......@@ -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_ */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment