X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fif_example.c;h=9fcce41cbfb57df2447d34ee567f739d3dbd0ae8;hb=144074a824bbdad28f19ec5f04b2651607c5951c;hp=b53b65371e1e7997d835a2f6cff93b3b5dc810ec;hpb=dddcc630819f338c3b45e2bc646233e6872d5bb6;p=libfirm diff --git a/testprograms/if_example.c b/testprograms/if_example.c index b53b65371..9fcce41cb 100644 --- a/testprograms/if_example.c +++ b/testprograms/if_example.c @@ -89,7 +89,7 @@ main(void) /* Generate a conditional branch */ cmp = new_Cmp(get_value(a_pos, mode_Is), get_value(b_pos, mode_Is)); - x = new_Cond (new_Proj(cmp, mode_b, Eq)); + x = new_Cond (new_Proj(cmp, mode_b, pn_Cmp_Eq)); f = new_Proj (x, mode_X, 0); t = new_Proj (x, mode_X, 1); @@ -129,7 +129,7 @@ main(void) /* verify the graph */ irg_vrfy(irg); - finalize_cons (irg); + irg_finalize_cons (irg); /* output the vcg file */ printf("Done building the graph. Dumping it.\n");