From 2096478bb34c3a43ac16e88ff9be739d149aa220 Mon Sep 17 00:00:00 2001 From: Matthias Braun Date: Thu, 22 Sep 2011 14:34:39 +0200 Subject: [PATCH] cleanup in firm_types.h --- include/libfirm/firm_types.h | 3 --- include/libfirm/irarch.h | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/include/libfirm/firm_types.h b/include/libfirm/firm_types.h index 4e75e96c8..8f8992103 100644 --- a/include/libfirm/firm_types.h +++ b/include/libfirm/firm_types.h @@ -64,9 +64,6 @@ typedef union ir_initializer_t ir_initializer_t, *ir_initializer_ptr; typedef void irg_walk_func(ir_node *, void *); typedef void irg_reg_walk_func(ir_region *, void *); -/* settings */ -typedef struct ir_settings_arch_dep_t ir_settings_arch_dep_t; - /* Needed for MSVC to suppress warnings because it doest NOT handle const right. */ typedef const ir_node *ir_node_cnst_ptr; diff --git a/include/libfirm/irarch.h b/include/libfirm/irarch.h index 8492b73ea..c980a0bbd 100644 --- a/include/libfirm/irarch.h +++ b/include/libfirm/irarch.h @@ -58,7 +58,7 @@ typedef int (*evaluate_costs_func)(insn_kind kind, const ir_mode *mode, ir_tarva * A parameter structure that drives the machine dependent Firm * optimizations. */ -struct ir_settings_arch_dep_t { +typedef struct ir_settings_arch_dep_t { /* Mul optimization */ unsigned also_use_subs : 1; /**< Use also Subs when resolving Muls to shifts */ unsigned maximum_shifts; /**< The maximum number of shifts that shall be inserted for a mul. */ @@ -72,7 +72,7 @@ struct ir_settings_arch_dep_t { unsigned allow_mulhu : 1; /**< Use the Mulhu operation for division by constant */ unsigned max_bits_for_mulh; /**< Maximum number of bits the Mulh operation can take. Modes with higher amount of bits will use Mulh */ -}; +} ir_settings_arch_dep_t; /** * A factory function, that provides architecture parameters for -- 2.20.1