X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fif_else_example.c;h=0fea90b397690d4e5ffb2d50c38e3b693e00a91d;hb=74bd8e51e078963b857515e45fb2192fafee239e;hp=4d98778d2dd01743e8665e4ace83778dd63adbf1;hpb=b29be0767a1fd82929f7dce37381d2e66550be29;p=libfirm diff --git a/testprograms/if_else_example.c b/testprograms/if_else_example.c index 4d98778d2..0fea90b39 100644 --- a/testprograms/if_else_example.c +++ b/testprograms/if_else_example.c @@ -1,4 +1,4 @@ -/* + /* * Project: libFIRM * File name: testprograms/if_else_example.c * Purpose: Shows construction of if ... else control flow. @@ -84,7 +84,7 @@ int main(int argc, char **argv) /* the expression that evaluates the condition */ c2 = new_Const (mode_Is, new_tarval_from_long (2, mode_Is)); - cmpGt = new_Proj(new_Cmp(get_value(0, mode_Is), c2), mode_b, Gt); + cmpGt = new_Proj(new_Cmp(get_value(0, mode_Is), c2), mode_b, pn_Cmp_Gt); /* the conditional branch */ x = new_Cond (cmpGt); @@ -130,7 +130,7 @@ int main(int argc, char **argv) /* Now we can mature the end block as all it's predecessors are known. */ mature_immBlock (get_irg_end_block(irg)); - finalize_cons (irg); + irg_finalize_cons (irg); printf("Optimizing ...\n"); local_optimize_graph(irg); @@ -138,7 +138,7 @@ int main(int argc, char **argv) /* verify the graph */ irg_vrfy(irg); - finalize_cons (irg); + irg_finalize_cons (irg); printf("Done building the graph. Dumping it.\n"); dump_ir_block_graph (irg, 0);