X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprog.c;h=daeb232b9909a4b95811796c8e0887a7fa08e9b0;hb=eb47aca33f2f8c414409f3695e73277b47442334;hp=d9347fafa3ba5246064fe504f9abfcc6392b1dba;hpb=9d4e23060441530a20af5d331268435bfe18f305;p=libfirm diff --git a/ir/ir/irprog.c b/ir/ir/irprog.c index d9347fafa..daeb232b9 100644 --- a/ir/ir/irprog.c +++ b/ir/ir/irprog.c @@ -85,9 +85,10 @@ static ir_prog *complete_ir_prog(ir_prog *irp, const char *module_name) #define IDENT(x) new_id_from_chars(x, sizeof(x) - 1) irp->name = new_id_from_str(module_name); - irp->segment_types[IR_SEGMENT_GLOBAL] = new_type_class(IDENT("GlobalType")); + irp->segment_types[IR_SEGMENT_GLOBAL] + = new_type_class(IDENT("GlobalType")); irp->segment_types[IR_SEGMENT_THREAD_LOCAL] - = new_type_class(IDENT("ThreadLocal")); + = new_type_struct(IDENT("ThreadLocal")); irp->segment_types[IR_SEGMENT_CONSTRUCTORS] = new_type_class(IDENT("Constructors")); irp->segment_types[IR_SEGMENT_DESTRUCTORS] @@ -246,7 +247,7 @@ ir_graph *(get_irp_irg)(size_t pos) return _get_irp_irg(pos); } -int get_irp_last_idx(void) +size_t get_irp_last_idx(void) { return irp->max_irg_idx; }