X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fdead_block_example.c;h=7493d7c00d109eaeb8b4fc48f876361ce6b12adf;hb=67067849894a6b5e0f87253ede8539331e3bdc3d;hp=e7513b8b4114017d5ff6c1e88710db018bc18e3f;hpb=8a828c064c24643f30d68b67808a62e8a7ae1d80;p=libfirm diff --git a/testprograms/dead_block_example.c b/testprograms/dead_block_example.c index e7513b8b4..7493d7c00 100644 --- a/testprograms/dead_block_example.c +++ b/testprograms/dead_block_example.c @@ -55,7 +55,7 @@ int main(int argc, char **argv) *deadBlock, *x; /* init library */ - init_firm (); + init_firm (NULL); /*** Make basic type information for primitive type int. ***/ prim_t_int = new_type_primitive(id_from_str ("int", 3), mode_Is); @@ -85,8 +85,8 @@ int main(int argc, char **argv) irg = new_ir_graph (ent, NUM_OF_LOCAL_VARS); /* to make a condition */ - c1 = new_Const (mode_Is, tarval_from_long (mode_Is, 1)); - c2 = new_Const (mode_Is, tarval_from_long (mode_Is, 2)); + c1 = new_Const (mode_Is, new_tarval_from_long (1, mode_Is)); + c2 = new_Const (mode_Is, new_tarval_from_long (2, mode_Is)); set_value(0, c2); cond = new_Cond(new_Proj(new_Cmp(c1, c2), mode_b, Eq));