fixed the fix of the fix (that was fix)
[libfirm] / ir / be / mips / bearch_mips.c
index 2f75346..18cb60d 100644 (file)
@@ -47,7 +47,7 @@
 #include "../benode_t.h"
 #include "../belower.h"
 #include "../besched_t.h"
-#include "../be.h"
+#include "be.h"
 #include "../beabi.h"
 #include "../bemachine.h"
 #include "../bemodule.h"
@@ -209,12 +209,12 @@ static arch_irn_flags_t mips_get_flags(const void *self, const ir_node *irn) {
 
 static
 ir_entity *mips_get_frame_entity(const void *self, const ir_node *node) {
-       mips_attr_t *attr;
+       const mips_attr_t *attr;
 
        if(!is_mips_irn(node))
                return NULL;
 
-       attr = get_mips_attr(node);
+       attr = get_mips_attr_const(node);
        return attr->stack_entity;
 }
 
@@ -935,14 +935,6 @@ static ir_graph **mips_get_irg_list(const void *self, ir_graph ***irg_list) {
        return NULL;
 }
 
-/**
- * Called by the frontend to encode a register name into a backend specific way
- */
-static unsigned mips_register_from_name(const char *regname) {
-       /* NYI */
-       return 0;
-}
-
 /**
  * Returns the libFirm configuration parameter for this backend.
  */
@@ -958,12 +950,12 @@ static const backend_params *mips_get_libfirm_params(void) {
        static backend_params p = {
                1,     /* need dword lowering */
                0,     /* don't support inlien assembler yet */
+               0,     /* no different calling conventions */
                NULL,  /* no additional opcodes */
                NULL,  /* will be set later */
                NULL,  /* but yet no creator function */
                NULL,  /* context for create_intrinsic_fkt */
                NULL,  /* no if conversion settings */
-               mips_register_from_name, /* register names */
        };
 
        p.dep_param = &ad;