X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fia32%2Fia32_emitter.h;h=0a4ae0fb627913e9dc9b576261ef8cd2714fe69d;hb=cfca4797175eb9f25889a6db5a37d2def39ff3fc;hp=72cb763a7666095c5020771401d71f879094b0e6;hpb=d6f38b0d3259136f930f39d6611c7f86f57f96ce;p=libfirm diff --git a/ir/be/ia32/ia32_emitter.h b/ir/be/ia32/ia32_emitter.h index 72cb763a7..0a4ae0fb6 100644 --- a/ir/be/ia32/ia32_emitter.h +++ b/ir/be/ia32/ia32_emitter.h @@ -10,11 +10,11 @@ #include "bearch_ia32_t.h" typedef struct _ia32_emit_env_t { - firm_dbg_module_t *mod; FILE *out; const arch_env_t *arch_env; const ia32_code_gen_t *cg; ia32_isa_t *isa; + DEBUG_ONLY(firm_dbg_module_t *mod;) } ia32_emit_env_t; const lc_arg_env_t *ia32_get_arg_env(void); @@ -30,4 +30,29 @@ const char *get_ia32_in_reg_name(ir_node *irn, int pos); void ia32_gen_routine(FILE *F, ir_graph *irg, const ia32_code_gen_t *cg); +/** + * Sections. + */ +typedef enum section_t { + NO_SECTION = -1, /**< no section selected yet. */ + SECTION_TEXT = 0, /**< text section */ + SECTION_DATA = 1, /**< data section */ + SECTION_RODATA = 2, /**< rodata section */ + SECTION_COMMON = 3, /**< common section */ + SECTION_MAX = 4 +} section_t; + +/** + * Switch to a new section. + */ +void ia32_switch_section(FILE *f, section_t sec); + +typedef enum asm_flavour_t { + ASM_LINUX_GAS = 0, /**< Linux gas */ + ASM_MINGW_GAS = 1, /**< MinGW gas */ + ASM_MAX = 2 +} asm_flavour_t; + +extern asm_flavour_t asm_flavour; + #endif /* _IA32_EMITTER_H_ */