summaryrefslogtreecommitdiffhomepage
path: root/ir/be/begnuas.h
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-11-28 10:24:18 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-11-28 10:43:27 +0100
commit3c638b452cb30940cb53dc140fb0ac813b9dd502 (patch)
treeec9bdc8bd30acb87309d158b76243285429e28c8 /ir/be/begnuas.h
parent36e39904b65e1c5f726333f65350afb8758c4ade (diff)
be: Factor out common code to handle switch tables.
Diffstat (limited to 'ir/be/begnuas.h')
-rw-r--r--ir/be/begnuas.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/ir/be/begnuas.h b/ir/be/begnuas.h
index 67cfd52..27c04fe 100644
--- a/ir/be/begnuas.h
+++ b/ir/be/begnuas.h
@@ -15,6 +15,7 @@
#include <stdbool.h>
#include "be_types.h"
#include "bedwarf.h"
+#include "benode.h"
typedef enum {
GAS_SECTION_TEXT, /**< text section - program code */
@@ -125,9 +126,7 @@ typedef void (*emit_target_func)(ir_entity const *table, ir_node const *proj_x);
/**
* Emits a jump table for switch operations
*/
-void be_emit_jump_table(const ir_node *node, const ir_switch_table *table,
- ir_entity const *entity, ir_mode *entry_mode,
- emit_target_func get_cfop_target);
+void be_emit_jump_table(ir_node const *node, be_switch_attr_t const *swtch, ir_mode *entry_mode, emit_target_func emit_target);
bool be_gas_produces_dwarf_line_info(void);