From 450463e47d5c7b5ba4e8f31db94fede91093fde0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Christian=20W=C3=BCrdig?= Date: Wed, 26 Oct 2005 13:50:43 +0000 Subject: [PATCH] moved attribute struct into .h because it's needed in transform.c --- ir/be/bearch_firm.c | 10 ++-------- ir/be/bearch_firm.h | 8 ++++++++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/ir/be/bearch_firm.c b/ir/be/bearch_firm.c index ef5cbfcaa..b571693ac 100644 --- a/ir/be/bearch_firm.c +++ b/ir/be/bearch_firm.c @@ -21,6 +21,8 @@ #include "irreflect.h" +#include "bearch_firm.h" + #define N_REGS 3 static arch_register_t datab_regs[N_REGS]; @@ -32,14 +34,6 @@ static arch_register_class_t reg_classes[] = { static ir_op *op_push; static ir_op *op_imm; -typedef struct { - enum { imm_Const, imm_SymConst } tp; - union { - tarval *tv; - entity *ent; - } data; -} imm_attr_t; - #define N_CLASSES \ (sizeof(reg_classes) / sizeof(reg_classes[0])) diff --git a/ir/be/bearch_firm.h b/ir/be/bearch_firm.h index a5efd6da3..cfb7dc6e9 100644 --- a/ir/be/bearch_firm.h +++ b/ir/be/bearch_firm.h @@ -21,4 +21,12 @@ extern const arch_irn_handler_t firm_irn_handler; /* TODO UGLY*/ int is_Imm(const ir_node *irn); +typedef struct { + enum { imm_Const, imm_SymConst } tp; + union { + tarval *tv; + entity *ent; + } data; +} imm_attr_t; + #endif /* _BEARCH_FIRM_H */ -- 2.20.1