X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprog.c;h=1c5bc9b8bd95bfc6bf56c73c817468ca2b1543bf;hb=cb91bddc9cacdab7c28e4336847bd3dc248aa549;hp=35f28f1d17c37f23345c7126c17fc3e89cb14910;hpb=58ed1dbc91297e868c47ffb3b622c66f28065105;p=libfirm diff --git a/ir/ir/irprog.c b/ir/ir/irprog.c index 35f28f1d1..1c5bc9b8b 100644 --- a/ir/ir/irprog.c +++ b/ir/ir/irprog.c @@ -68,7 +68,7 @@ ir_prog *new_ir_prog (void) { res->max_node_nr = 0; #endif - res->glob_type = new_type_class(id_from_str (GLOBAL_TYPE_NAME, + res->glob_type = new_type_class(new_id_from_chars (GLOBAL_TYPE_NAME, strlen(GLOBAL_TYPE_NAME))); /* Remove type from type list. Must be treated differently than other types. */ @@ -76,7 +76,7 @@ ir_prog *new_ir_prog (void) { res->const_code_irg = new_const_code_irg(); - res->outs_state = no_outs; + res->outs_state = outs_none; res->ip_outedges = NULL; return res; @@ -146,7 +146,6 @@ ir_graph *(get_irp_irg)(int pos){ void set_irp_irg(int pos, ir_graph *irg) { assert (irp && irg); assert (pos < (ARR_LEN((irp)->graphs))); - /* Strangely the first element of the array is NULL. Why?? */ irp->graphs[pos] = irg; } @@ -172,7 +171,6 @@ type *(get_irp_type) (int pos) { void set_irp_type(int pos, type *typ) { assert (irp && typ); assert (pos < (ARR_LEN((irp)->types))); - /* Strangely the first element of the array is NULL. Why?? */ irp->types[pos] = typ; } @@ -218,3 +216,12 @@ ir_node** get_irp_ip_outedges(void) { return(irp -> ip_outedges); } + + +irg_callee_info_state get_irp_callee_info_state(void) { + return irp->callee_info_state; +} + +void set_irp_callee_info_state(irg_callee_info_state s) { + irp->callee_info_state = s; +}