fixed warnings
[libfirm] / testprograms / if_example.c
index b53b653..9fcce41 100644 (file)
@@ -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");