X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgraph.c;h=249fdb55a0347d235e98f9818ebb29b019deaa28;hb=5f8ddee6b08c8040c0a304a347d65045c1141d52;hp=c075a1158ea847f348265be900407ed367201bca;hpb=4ba1f381673a1b615096a66760b93afa99bf3416;p=libfirm diff --git a/ir/ir/irgraph.c b/ir/ir/irgraph.c index c075a1158..249fdb55a 100644 --- a/ir/ir/irgraph.c +++ b/ir/ir/irgraph.c @@ -31,7 +31,7 @@ Phi_in_stack *new_Phi_in_stack(); and optimization. */ ir_graph * -new_ir_graph (entity *ent, int params) +new_ir_graph (entity *ent, int n_loc) { ir_graph *res; ir_node *first_block; @@ -43,7 +43,7 @@ new_ir_graph (entity *ent, int params) /** Internal information for graph construction either held in the graph or *** initialized for each graph. **/ - res->params = params + 1; /* number of local variables that are never + res->n_loc = n_loc + 1; /* number of local variables that are never dereferenced in this graph plus one for the store. This is not the number of parameters to the procedure! */ @@ -232,15 +232,15 @@ set_irg_ent (ir_graph *irg, entity *ent) } int -get_irg_params (ir_graph *irg) +get_irg_n_loc (ir_graph *irg) { - return irg->params; + return irg->n_loc; } void -set_irg_params (ir_graph *irg, int params) +set_irg_n_loc (ir_graph *irg, int n_loc) { - irg->params = params; + irg->n_loc = n_loc; } unsigned long