compound parameter lowering is done in lower_for_target now
authorMatthias Braun <matze@braunis.de>
Fri, 4 Mar 2011 11:53:31 +0000 (11:53 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 4 Mar 2011 11:53:31 +0000 (11:53 +0000)
[r28473]

driver/firm_opt.c
driver/firm_opt.h
main.c

index 174a34a..ce0a6d8 100644 (file)
@@ -718,9 +718,6 @@ void gen_firm_finish(FILE *out, const char *input_filename,
                do_irg_opt(irg, "control-flow");
        }
 
-       /* lower all compound call return values */
-       lower_compound_params();
-
        /* lower copyb nodes */
        for (i = get_irp_n_irgs() - 1; i >= 0; --i) {
                ir_graph *irg = get_irp_irg(i);
index 56fdbe6..6a00b1f 100644 (file)
@@ -95,9 +95,6 @@ extern ir_entity_ptr rts_entities[rts_max];
 /** Debug printf implementation. */
 extern void dbg_printf(const char *fmt, ...);
 
-/** Do the necessary lowering for compound parameters. */
-extern void lower_compound_params(void);
-
 /** Initialize for the Firm-generating back end. */
 void gen_firm_init(void);
 
diff --git a/main.c b/main.c
index ec09657..b51d1ff 100644 (file)
--- a/main.c
+++ b/main.c
@@ -519,21 +519,6 @@ static void free_temp_files(void)
        temp_files = NULL;
 }
 
-/**
- * Do the necessary lowering for compound parameters.
- */
-void lower_compound_params(void)
-{
-       lower_params_t params;
-
-       params.def_ptr_alignment    = 4;
-       params.flags                = LF_COMPOUND_RETURN | LF_RETURN_HIDDEN;
-       params.hidden_params        = ADD_HIDDEN_ALWAYS_IN_FRONT;
-       params.find_pointer_type    = NULL;
-       params.ret_compound_in_regs = NULL;
-       lower_calls_with_compounds(&params);
-}
-
 typedef enum compile_mode_t {
        BenchmarkParser,
        PreprocessOnly,