fix mips immediate dumper
[libfirm] / ir / be / mips / bearch_mips_t.h
index a9a76c5..afd85ab 100644 (file)
@@ -30,7 +30,7 @@
 #include "irgopt.h"
 #include "bearch_mips.h"
 #include "mips_nodes_attr.h"
-#include "../be.h"
+#include "be.h"
 #include "../beemitter.h"
 #include "set.h"
 
@@ -43,9 +43,8 @@ struct mips_code_gen_t {
        ir_graph                       *irg;            /**< current irg */
        const arch_env_t               *arch_env;       /**< the arch env */
        set                            *reg_set;        /**< set to memorize registers for FIRM nodes (e.g. phi) */
-       int                             emit_decls;     /**< flag indicating if decls were already emitted */
        mips_isa_t                     *isa;            /**< the isa instance */
-       const be_irg_t                 *birg;           /**< The be-irg (contains additional information about the irg) */
+       be_irg_t                       *birg;           /**< The be-irg (contains additional information about the irg) */
        ir_node                        **bl_list;               /**< The block schedule list. */
        survive_dce_t                              *bl_list_sdce;       /**< survive dce environment for the block schedule list */
 };
@@ -53,6 +52,7 @@ struct mips_code_gen_t {
 struct mips_isa_t {
        arch_isa_t             arch_isa;    /**< must be derived from arch_isa_t */
        be_emit_env_t          emit;        /**< An emitter environment for the GAS emitter. */
+       mips_code_gen_t       *cg;
 };
 
 struct mips_irn_ops_t {