X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Foo_program_example.c;h=835d8be97f6a264cc9b1220b3ae1fbb9ee0c538b;hb=0eb9e8a7def8f3003527c59013190344d27f38f2;hp=8b7fed3051b512eeb079c04f851c5e820dfa20cf;hpb=29fb0e6e7e0a25930279564325a39554658552e0;p=libfirm diff --git a/testprograms/oo_program_example.c b/testprograms/oo_program_example.c index 8b7fed305..835d8be97 100644 --- a/testprograms/oo_program_example.c +++ b/testprograms/oo_program_example.c @@ -119,7 +119,8 @@ 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. */ - obj_size = new_SymConst((type_or_id_p)class_prima, size); + symconst_symbol sym = {class_prima}; + obj_size = new_SymConst(sym, symconst_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 */ @@ -247,9 +248,29 @@ main(void) /* Touch ld names to distinguish names from oo_inline names. */ get_entity_ld_ident(proc_set_a_e); get_entity_ld_ident(proc_c_e); + + dump_consts_local(1); + turn_off_edge_labels(); + + dump_all_ir_graphs(dump_ir_graph); dump_all_ir_graphs(dump_ir_block_graph); + dump_all_ir_graphs(dump_ir_graph_w_types); dump_all_ir_graphs(dump_ir_block_graph_w_types); + dump_all_ir_graphs(dump_type_graph); dump_all_types(); + dump_class_hierarchy (true); + + entity **free_methods; + int arr_len; + cgana(&arr_len, &free_methods, 0); + cg_construct(arr_len, free_methods); + + interprocedural_view = 1; + dump_ir_graph(main_irg); + dump_ir_block_graph(main_irg); + dump_ir_graph_w_types(main_irg); + dump_ir_block_graph_w_types(main_irg); + dump_all_cg_block_graph(); printf("Use xvcg to view these graphs:\n"); printf("/ben/goetz/bin/xvcg GRAPHNAME\n\n");