Commit b29b62af authored by Christoph Mallon's avatar Christoph Mallon
Browse files

be: Remove the unused function 'be_get_type_long_long()' as well as...

be: Remove the unused function 'be_get_type_long_long()' as well as 'type_long_long' from 'struct backend_params'.
parent 16f2937e
......@@ -134,11 +134,6 @@ typedef struct backend_params {
*/
ir_mode *mode_float_arithmetic;
/**
* type used for long long or NULL if none available.
*/
ir_type *type_long_long;
/**
* type used for unsigned long long or NULL if none available
*/
......@@ -187,9 +182,6 @@ FIRM_API unsigned be_get_machine_size(void);
*/
FIRM_API ir_mode *be_get_mode_float_arithmetic(void);
/** Returns type used for long long or NULL if none available. */
FIRM_API ir_type *be_get_type_long_long(void);
/** Returns type used for unsigned long long or NULL if none available. */
FIRM_API ir_type *be_get_type_unsigned_long_long(void);
......
......@@ -149,7 +149,6 @@ static const backend_params *TEMPLATE_get_backend_params(void)
.allow_ifconv = TEMPLATE_is_mux_allowed,
.machine_size = 32,
.mode_float_arithmetic = NULL,
.type_long_long = NULL,
.type_unsigned_long_long = NULL,
.type_long_double = NULL,
.stack_param_align = 4,
......
......@@ -756,7 +756,6 @@ static backend_params amd64_backend_params = {
.allow_ifconv = amd64_is_mux_allowed,
.machine_size = 64,
.mode_float_arithmetic = NULL, /* will be set later */
.type_long_long = NULL, /* will be set later */
.type_unsigned_long_long = NULL, /* will be set later */
.type_long_double = NULL, /* will be set later */
.stack_param_align = 8,
......
......@@ -270,7 +270,6 @@ static backend_params arm_backend_params = {
.allow_ifconv = arm_is_mux_allowed,
.machine_size = ARM_MACHINE_SIZE,
.mode_float_arithmetic = NULL,
.type_long_long = NULL,
.type_unsigned_long_long = NULL,
.type_long_double = NULL,
.stack_param_align = 4,
......
......@@ -453,11 +453,6 @@ ir_mode *be_get_mode_float_arithmetic(void)
return be_get_backend_param()->mode_float_arithmetic;
}
ir_type *be_get_type_long_long(void)
{
return be_get_backend_param()->type_long_long;
}
ir_type *be_get_type_unsigned_long_long(void)
{
return be_get_backend_param()->type_unsigned_long_long;
......
......@@ -1358,7 +1358,6 @@ static backend_params ia32_backend_params = {
.allow_ifconv = ia32_is_mux_allowed,
.machine_size = 32,
.mode_float_arithmetic = NULL, /* will be set later */
.type_long_long = NULL, /* will be set later */
.type_unsigned_long_long = NULL, /* will be set later */
.type_long_double = NULL, /* will be set later */
.stack_param_align = 4,
......@@ -1387,15 +1386,11 @@ static void ia32_init(void)
ia32_mode_float32 = new_float_mode("fp32", irma_ieee754, 8, 23,
ir_overflow_indefinite);
ir_mode *mode_long_long
= new_int_mode("long long", irma_twos_complement, 64, 1, 64);
ir_type *type_long_long = get_type_for_mode(mode_long_long);
ir_mode *mode_unsigned_long_long
= new_int_mode("unsigned long long", irma_twos_complement, 64, 0, 64);
ir_type *type_unsigned_long_long
= get_type_for_mode(mode_unsigned_long_long);
ia32_backend_params.type_long_long = type_long_long;
ia32_backend_params.type_unsigned_long_long = type_unsigned_long_long;
// va_list is a void pointer
......
......@@ -536,7 +536,6 @@ static const backend_params *sparc_get_backend_params(void)
.allow_ifconv = sparc_is_mux_allowed,
.machine_size = 32,
.mode_float_arithmetic = NULL, /* will be set later */
.type_long_long = NULL, /* will be set later */
.type_unsigned_long_long = NULL, /* will be set later */
.type_long_double = NULL, /* will be set later */
.stack_param_align = 4,
......@@ -547,9 +546,6 @@ static const backend_params *sparc_get_backend_params(void)
},
};
ir_mode *mode_long_long
= new_int_mode("long long", irma_twos_complement, 64, 1, 64);
ir_type *type_long_long = get_type_for_mode(mode_long_long);
ir_mode *mode_unsigned_long_long
= new_int_mode("unsigned long long", irma_twos_complement, 64, 0, 64);
ir_type *type_unsigned_long_long
......@@ -557,7 +553,6 @@ static const backend_params *sparc_get_backend_params(void)
ir_type *type_va_list
= new_type_pointer(get_type_for_mode(mode_ANY));
p.type_long_long = type_long_long;
p.type_unsigned_long_long = type_unsigned_long_long;
p.vararg.va_list_type = type_va_list;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment