X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firprofile.c;h=408a8ac77d162a11b2dd240cf2c50e88fccc5354;hb=31ef53136fdb86d4a98919c2148c95cadea4ea81;hp=e5e3255ea9524d9a233a857e55031e44db0a2612;hpb=c1c5038646f779270959434299f28b12dc98465e;p=libfirm diff --git a/ir/ir/irprofile.c b/ir/ir/irprofile.c index e5e3255ea..408a8ac77 100644 --- a/ir/ir/irprofile.c +++ b/ir/ir/irprofile.c @@ -36,6 +36,7 @@ #include "set.h" #include "list.h" #include "pmap.h" +#include "array_t.h" #include "irprintf.h" #include "irgwalk.h" @@ -178,7 +179,7 @@ static void add_constructor(ir_entity *method) ident *id = id_unique("constructor_ptrt.%u"); ir_type *ptr_type = new_type_pointer(id, method_type, mode_P_code); - ir_type *constructors = get_constructors_type(); + ir_type *constructors = get_segment_type(IR_SEGMENT_CONSTRUCTORS); ident *ide = id_unique("constructor_ptr.%u"); ir_entity *ptr = new_entity(constructors, ide, ptr_type); ir_graph *irg = get_const_code_irg();