Use be_emit_irprintf("%T", x) instead of be_emit_tarval().
[libfirm] / ir / be / ia32 / bearch_ia32.c
index a293d7f..b815291 100644 (file)
@@ -62,7 +62,6 @@
 #include "be.h"
 #include "be_t.h"
 #include "beirgmod.h"
-#include "be_dbgout.h"
 #include "beblocksched.h"
 #include "bespillutil.h"
 #include "bespillslots.h"
@@ -190,14 +189,6 @@ static ir_node *ia32_get_admissible_noreg(ir_node *irn, int pos)
        }
 }
 
-/**
- * The IA32 ABI callback object.
- */
-typedef struct {
-       be_abi_call_flags_bits_t flags;  /**< The call flags. */
-       ir_graph *irg;                   /**< The associated graph. */
-} ia32_abi_env_t;
-
 static ir_entity *ia32_get_frame_entity(const ir_node *irn)
 {
        return is_ia32_irn(irn) ? get_ia32_frame_ent(irn) : NULL;
@@ -1727,10 +1718,10 @@ static backend_params ia32_backend_params = {
  */
 static void ia32_init(void)
 {
-       ir_mode    *mode_long_long;
-       ir_mode    *mode_unsigned_long_long;
-       ir_type    *type_long_long;
-       ir_type    *type_unsigned_long_long;
+       ir_mode *mode_long_long;
+       ir_mode *mode_unsigned_long_long;
+       ir_type *type_long_long;
+       ir_type *type_unsigned_long_long;
 
        ia32_setup_cg_config();
 
@@ -1763,6 +1754,7 @@ static void ia32_init(void)
        }
 
        ia32_register_init();
+       obstack_init(&opcodes_obst);
        ia32_create_opcodes(&ia32_irn_ops);
 }
 
@@ -1773,6 +1765,7 @@ static void ia32_finish(void)
                between_type = NULL;
        }
        ia32_free_opcodes();
+       obstack_free(&opcodes_obst, NULL);
 }
 
 /**
@@ -1927,10 +1920,8 @@ static void ia32_get_call_abi(ir_type *method_type, be_abi_call_t *abi)
        be_abi_call_flags_t call_flags = be_abi_call_get_flags(abi);
 
        /* set abi flags for calls */
-       call_flags.bits.store_args_sequential = 0;
        /* call_flags.bits.try_omit_fp                 not changed: can handle both settings */
-       call_flags.bits.fp_free               = 0;  /* the frame pointer is fixed in IA32 */
-       call_flags.bits.call_has_imm          = 0;  /* No call immediate, we handle this by ourselves */
+       call_flags.bits.call_has_imm = false;  /* No call immediate, we handle this by ourselves */
 
        /* set parameter passing style */
        be_abi_call_set_flags(abi, call_flags, &ia32_abi_callbacks);