Use correct return type (void) for pass wrapper callbacks.
authorChristoph Mallon <christoph.mallon@gmx.de>
Wed, 19 Aug 2009 08:02:02 +0000 (08:02 +0000)
committerChristoph Mallon <christoph.mallon@gmx.de>
Wed, 19 Aug 2009 08:02:02 +0000 (08:02 +0000)
[r26378]

ir/lower/lower_dw.c
ir/lower/lower_intrinsics.c
ir/opt/funccall.c

index a0a060f..eb9d175 100644 (file)
@@ -2694,12 +2694,12 @@ struct pass_t {
 /**
  * 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) {
index 4613347..41b9b20 100644 (file)
@@ -170,13 +170,12 @@ struct pass_t {
 /**
  * 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 */
 
 /**
index a22c916..9c476c2 100644 (file)
@@ -1084,12 +1084,12 @@ struct pass_t {
 /**
  * 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. */