X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Foo_program_example.c;h=69033680f1d7f0417943d48089c10415038ead5a;hb=3cd42bbc9883e96a01a7f01de691d70602eb9a36;hp=b0010de99b9acaba080758b3b2d8e7be4ac273f1;hpb=2cd57a8b25d2cf8c34a1ee05bc2198a57ffdc0fc;p=libfirm diff --git a/testprograms/oo_program_example.c b/testprograms/oo_program_example.c index b0010de99..69033680f 100644 --- a/testprograms/oo_program_example.c +++ b/testprograms/oo_program_example.c @@ -73,7 +73,7 @@ main(void) class_prima = new_type_class(new_id_from_chars ("PRIMA", 5)); /* 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); @@ -259,14 +259,14 @@ main(void) dump_all_ir_graphs(dump_type_graph, ""); dump_all_ir_graphs(dump_graph_as_text, ""); dump_all_types(""); - dump_class_hierarchy (true, ""); + dump_class_hierarchy (1, ""); entity **free_methods; int arr_len; cgana(&arr_len, &free_methods); cg_construct(arr_len, free_methods); - set_interprocedural_view(true); + set_interprocedural_view(1); dump_ir_graph(main_irg, ""); dump_ir_block_graph(main_irg, ""); dump_ir_graph_w_types(main_irg, "");