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

ia32: Move struct constraint_t into the only file, which uses it.

parent 2882a191
...@@ -145,6 +145,18 @@ int ia32_mode_needs_gp_reg(ir_mode *mode) ...@@ -145,6 +145,18 @@ int ia32_mode_needs_gp_reg(ir_mode *mode)
return mode_is_int(mode) || mode_is_reference(mode) || mode == mode_b; return mode_is_int(mode) || mode_is_reference(mode) || mode == mode_b;
} }
/**
* An assembler constraint.
*/
typedef struct constraint_t {
const arch_register_class_t *cls;
unsigned allowed_registers;
char all_registers_allowed;
char memory_possible;
char immediate_type;
int same_as;
} constraint_t;
static void parse_asm_constraints(constraint_t *const constraint, ident *const constraint_text, bool const is_output) static void parse_asm_constraints(constraint_t *const constraint, ident *const constraint_text, bool const is_output)
{ {
memset(constraint, 0, sizeof(constraint[0])); memset(constraint, 0, sizeof(constraint[0]));
......
...@@ -15,19 +15,6 @@ ...@@ -15,19 +15,6 @@
#include "firm_types.h" #include "firm_types.h"
#include "bearch_ia32_t.h" #include "bearch_ia32_t.h"
/**
* An assembler constraint.
*/
typedef struct constraint_t constraint_t;
struct constraint_t {
const arch_register_class_t *cls;
unsigned allowed_registers;
char all_registers_allowed;
char memory_possible;
char immediate_type;
int same_as;
};
extern ir_heights_t *ia32_heights; extern ir_heights_t *ia32_heights;
extern int ia32_no_pic_adjust; extern int ia32_no_pic_adjust;
......
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