typedef void (*emit_func_ptr) (const ir_node *);
+/**
+ * Assign and emit an exception label if the current instruction can fail.
+ */
+static void ia32_assign_exc_label(ir_node *node)
+{
+ /* assign a new ID to the instruction */
+ set_ia32_exc_label_id(node, ++exc_label_id);
+ /* print it */
+ ia32_emit_exc_label(node);
+ be_emit_char(':');
+ be_emit_pad_comment();
+ be_emit_cstring("/* exception to Block ");
+ ia32_emit_cfop_target(node);
+ be_emit_cstring(" */\n");
+ be_emit_write_line();
+}
+
/**
* Emits code for a node.
*/
}
}
-/**
- * Assign and emit an exception label if the current instruction can fail.
- */
-void ia32_assign_exc_label(ir_node *node)
-{
- if (get_ia32_exc_label(node)) {
- /* assign a new ID to the instruction */
- set_ia32_exc_label_id(node, ++exc_label_id);
- /* print it */
- ia32_emit_exc_label(node);
- be_emit_char(':');
- be_emit_pad_comment();
- be_emit_cstring("/* exception to Block ");
- ia32_emit_cfop_target(node);
- be_emit_cstring(" */\n");
- be_emit_write_line();
- }
-}
-
/**
* Compare two exception_entries.
*/
void ia32_emit_x87_binop(const ir_node *node);
void ia32_gen_routine(ia32_code_gen_t *cg, ir_graph *irg);
-void ia32_assign_exc_label(ir_node *node);
#endif