bessaconstr: Avoid duplicate map lookups.
[libfirm] / ir / be / TEMPLATE / bearch_TEMPLATE.c
index 5df5adc..99cbb2f 100644 (file)
@@ -36,7 +36,7 @@
 #include "bitset.h"
 #include "debug.h"
 
-#include "be.h"
+#include "be_t.h"
 #include "bearch.h"
 #include "benode.h"
 #include "belower.h"
@@ -85,7 +85,6 @@ static const arch_irn_ops_t TEMPLATE_irn_ops = {
        TEMPLATE_get_frame_entity,
        TEMPLATE_set_frame_offset,
        TEMPLATE_get_sp_bias,
-       NULL,    /* get_inverse             */
        NULL,    /* get_op_estimated_cost   */
        NULL,    /* possible_memory_operand */
        NULL,    /* perform_memory_operand  */
@@ -226,12 +225,10 @@ static void TEMPLATE_get_call_abi(ir_type *method_type, be_abi_call_t *abi)
        ir_type  *tp;
        ir_mode  *mode;
        int       i, n = get_method_n_params(method_type);
-       be_abi_call_flags_t call_flags;
 
        /* set abi flags for calls */
+       be_abi_call_flags_t call_flags = be_abi_call_get_flags(abi);
        call_flags.call_has_imm = true;
-
-       /* set stack parameter passing style */
        be_abi_call_set_flags(abi, call_flags, &TEMPLATE_abi_callbacks);
 
        for (i = 0; i < n; i++) {