summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-05-06 10:37:35 +0200
committerMatthias Braun <matze@braunis.de>2015-05-07 06:10:16 +0200
commit3d6ab11797c320da0bbee09a23452c776c50af73 (patch)
tree73c4c86013d3f23f3a733e515ec4e10700c1b218 /ir/be/begnuas.h
parent7a43347c6f027bc8c9a9bb192dbcc3334a7c3f13 (diff)
Rework setting some OS details
The idea here, is that you do not simply set a target operating system or architecture, but have a setting for all things different between the operating systems. Knowledge about the name and habits of the operating system is left to the frontend. (We may want to provide a small support library in the future to share the triple parsing and OS -> settings code between multiple frontends).
Diffstat (limited to 'ir/be/begnuas.h')
-rw-r--r--ir/be/begnuas.h15
1 files changed, 4 insertions, 11 deletions
diff --git a/ir/be/begnuas.h b/ir/be/begnuas.h
index 1884abe..1a7eb6e 100644
--- a/ir/be/begnuas.h
+++ b/ir/be/begnuas.h
@@ -41,22 +41,13 @@ typedef enum {
} be_gas_section_t;
ENUM_BITSET(be_gas_section_t)
-typedef enum object_file_format_t {
- OBJECT_FILE_FORMAT_ELF, /**< Executable and Linkable Format (unixes) */
- OBJECT_FILE_FORMAT_COFF, /**< Common Object File Format (Windows) */
- OBJECT_FILE_FORMAT_MACH_O, /**< Mach Object File Format (OS/X) */
- OBJECT_FILE_FORMAT_LAST = OBJECT_FILE_FORMAT_MACH_O
-} object_file_format_t;
-
typedef enum elf_variant_t {
ELF_VARIANT_NORMAL,
ELF_VARIANT_SPARC
} elf_variant_t;
-/** The variable where the GAS dialect is stored. */
-extern object_file_format_t be_gas_object_file_format;
-extern bool be_gas_emit_types;
-extern elf_variant_t be_gas_elf_variant;
+extern bool be_gas_emit_types;
+extern elf_variant_t be_gas_elf_variant;
/**
* the .type directive needs to specify @function, #function or %function
@@ -138,4 +129,6 @@ void be_emit_jump_table(const ir_node *node, const ir_switch_table *table,
ir_entity *entity,
get_cfop_target_func get_cfop_target);
+bool be_gas_produces_dwarf_line_info(void);
+
#endif