Fix build: add missing typedef for ir_phase and more s/phase_t/ir_phase/
authorChristoph Mallon <christoph.mallon@gmx.de>
Fri, 6 Apr 2007 06:53:46 +0000 (06:53 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Fri, 6 Apr 2007 06:53:46 +0000 (06:53 +0000)
[r12668]

ir/be/beilpsched.c
ir/common/firm_types.h

index 8c9ebdf..a6b9d88 100644 (file)
@@ -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) {
index 44e3dd9..e0cbb07 100644 (file)
@@ -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_ */