ir_node *make_Call(ir_graph *c, int n_args, ir_node **args) {
- entity *ent = get_irg_ent(c);
+ entity *ent = get_irg_entity(c);
type *mtp = get_entity_type(ent);
symconst_symbol sym;
sym.entity_p = ent;
void close_method(int n_ins, ir_node **ins) {
ir_node *x = new_Return (get_store(), n_ins, ins);
- mature_block (get_cur_block());
- add_in_edge (get_cur_end_block(), x);
- mature_block (get_cur_end_block());
- finalize_cons(current_ir_graph);
+ mature_immBlock (get_cur_block());
+ add_immBlock_pred (get_cur_end_block(), x);
+ mature_immBlock (get_cur_end_block());
+ irg_finalize_cons(current_ir_graph);
}
entity **free_methods;
int arr_len;
- cgana(&arr_len, &free_methods, 0);
+ cgana(&arr_len, &free_methods);
compute_callgraph();
find_callgraph_recursions();
- dump_callgraph("");
+ //dump_callgraph(""); /* Order of edges depends on set.c, which is not deterministic. */
cg_construct(arr_len, free_methods);
printf("Use xvcg to view these graphs:\n");