X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Foo_inline_example.c;h=793eec4c4fc5bb2426399912d0bdc30fe47998d2;hb=e35868d34ab4dc228431d27015891f1486c249b4;hp=35def45757122a768236ca609eca6ad67f83b4f2;hpb=2004a1c1417c35a69f09b2f60010b028c6108240;p=libfirm diff --git a/testprograms/oo_inline_example.c b/testprograms/oo_inline_example.c index 35def4575..793eec4c4 100644 --- a/testprograms/oo_inline_example.c +++ b/testprograms/oo_inline_example.c @@ -75,7 +75,7 @@ main(void) class_prima = new_type_class(new_id_from_str ("PRIMA_INLINE")); /* We need type information for pointers to the class: */ class_p_ptr = new_type_pointer (new_id_from_chars ("class_prima_ptr", 15), - class_prima); + class_prima, mode_P); /* An entity for the field (a). The entity constructor automatically adds the entity as member of the owner. */ a_e = new_entity(class_prima, new_id_from_chars ("a", 1), prim_t_int); @@ -122,7 +122,7 @@ main(void) /* There is only one block in main, it contains the allocation and the calls. */ /* Allocate the defined object and generate the type information. */ symconst_symbol sym = { class_prima }; - obj_size = new_SymConst(sym, symconst_size); + obj_size = new_SymConst(sym, symconst_type_size); obj_o = new_Alloc(get_store(), obj_size, class_prima, heap_alloc); set_store(new_Proj(obj_o, mode_M, 0)); /* make the changed memory visible */ obj_o = new_Proj(obj_o, mode_P, 2); /* remember the pointer to the object */ @@ -173,7 +173,7 @@ main(void) mature_immBlock (get_irg_end_block(main_irg)); irg_vrfy(main_irg); - finalize_cons (main_irg); + irg_finalize_cons (main_irg); /****************************************************************************/ @@ -203,7 +203,7 @@ main(void) /* verify the graph */ irg_vrfy(set_a_irg); - finalize_cons (set_a_irg); + irg_finalize_cons (set_a_irg); /****************************************************************************/ @@ -227,11 +227,11 @@ main(void) add_immBlock_pred (r, x); x = new_Cond (new_Proj(new_Cmp(new_Const (mode_Is, new_tarval_from_long (0, mode_Is)), new_Const (mode_Is, new_tarval_from_long (0, mode_Is))), - mode_b, Eq)); + mode_b, pn_Cmp_Eq)); /* x = new_Cond (new_Proj(new_Cmp(new_Const (mode_Is, new_tarval_from_long (0, mode_Is)), get_value(1, mode_Is)), - mode_b, Eq));*/ + mode_b, pn_Cmp_Eq));*/ f = new_Proj (x, mode_X, 0); t = new_Proj (x, mode_X, 1); @@ -246,7 +246,7 @@ main(void) set_value (1, get_value (2, mode_Is)); set_value (2, get_value (3, mode_Is)); a_ptr = new_simpleSel(get_store(), self, a_e); - set_store(new_Store(get_store(), a_ptr, get_value(2, mode_Is))); + set_store(new_Proj(new_Store(get_store(), a_ptr, get_value(2, mode_Is)), mode_M, pn_Store_M)); x = new_Jmp (); add_immBlock_pred(r, x); mature_immBlock (b); @@ -276,7 +276,7 @@ main(void) /* verify the graph */ irg_vrfy(c_irg); - finalize_cons (c_irg); + irg_finalize_cons (c_irg); /****************************************************************************/