/**
* Creates a wrapper around lower_dw_ops().
*/
-static int pass_wrapper(ir_prog *irp, void *context) {
+static void pass_wrapper(ir_prog *irp, void *context)
+{
struct pass_t *pass = context;
(void)irp;
lower_dw_ops(pass->param);
- return 0;
} /* pass_wrapper */
ir_prog_pass_t *lower_dw_ops_pass(const char *name, const lwrdw_param_t *param) {
/**
* Wrapper for running lower_intrinsics() as an ir_prog pass.
*/
-static int pass_wrapper(ir_prog *irp, void *context)
+static void pass_wrapper(ir_prog *irp, void *context)
{
struct pass_t *pass = context;
(void) irp; /* TODO: set current irp, or remove parameter */
lower_intrinsics(pass->list, pass->length, pass->part_block_used);
/* probably this pass should not run again */
- return 0;
} /* pass_wrapper */
/**
/**
* Wrapper for running optimize_funccalls() as an ir_prog pass.
*/
-static int pass_wrapper(ir_prog *irp, void *context) {
+static void pass_wrapper(ir_prog *irp, void *context)
+{
struct pass_t *pass = context;
(void)irp;
optimize_funccalls(pass->force_run, pass->callback);
- return 0;
} /* pass_wrapper */
/* Creates an ir_prog pass for optimize_funccalls. */