*** empty log message ***
[libfirm] / testprograms / oo_program_example.c
index 3af3767..835d8be 100644 (file)
@@ -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 */
@@ -248,6 +249,8 @@ main(void)
   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);
@@ -257,10 +260,9 @@ main(void)
   dump_all_types();
   dump_class_hierarchy (true);
 
-
   entity **free_methods;
   int arr_len;
-  cgana(&arr_len, &free_methods);
+  cgana(&arr_len, &free_methods, 0);
   cg_construct(arr_len, free_methods);
 
   interprocedural_view = 1;