- remove block parameter from new_r_Proj and new_rd_Proj
authorMatthias Braun <matze@braunis.de>
Mon, 1 Mar 2010 13:38:45 +0000 (13:38 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 1 Mar 2010 13:38:45 +0000 (13:38 +0000)
- cleanup ir_spec generation a bit

[r27251]

ast2firm.c

index 4156376..54fe077 100644 (file)
@@ -5649,7 +5649,7 @@ static void initialize_function_parameters(entity_t *entity)
 
        if (entity->function.need_closure) {
                /* add an extra parameter for the static link */
-               entity->function.static_link = new_r_Proj(start_block, args, mode_P_data, 0);
+               entity->function.static_link = new_r_Proj(args, mode_P_data, 0);
                ++first_param_nr;
        }
 
@@ -5683,7 +5683,7 @@ static void initialize_function_parameters(entity_t *entity)
                ir_mode *param_mode   = get_type_mode(param_irtype);
 
                long     pn    = n + first_param_nr;
-               ir_node *value = new_r_Proj(start_block, args, param_mode, pn);
+               ir_node *value = new_r_Proj(args, param_mode, pn);
 
                ir_mode *mode = get_ir_mode_storage(type);
                value = create_conv(NULL, value, mode);