X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Foo_program_example.c;h=22fe94a3f741f3854e79a227722baa7f419454e5;hb=53b76abebcd071c7c25a7c17b5d0cdcb7772cb64;hp=6112dce26d3b2ba601c601f40d69a71efbaa083c;hpb=7e18980cefe532647559e1bbdb890f297c8d8131;p=libfirm diff --git a/testprograms/oo_program_example.c b/testprograms/oo_program_example.c index 6112dce26..22fe94a3f 100644 --- a/testprograms/oo_program_example.c +++ b/testprograms/oo_program_example.c @@ -120,7 +120,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 */ @@ -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, "");