projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autoconf stuff
[libfirm]
/
testprograms
/
const_eval_example.c
diff --git
a/testprograms/const_eval_example.c
b/testprograms/const_eval_example.c
index
1ca5c77
..
a8e1635
100644
(file)
--- a/
testprograms/const_eval_example.c
+++ b/
testprograms/const_eval_example.c
@@
-50,7
+50,7
@@
main(void)
b = new_Const (mode_i, tarval_from_long (mode_i, 5));
x = new_Jmp ();
b = new_Const (mode_i, tarval_from_long (mode_i, 5));
x = new_Jmp ();
- mature_block (
irg->current_block
);
+ mature_block (
get_irg_current_block(irg)
);
/* To test const eval on DivMod
c = new_DivMod(get_store(), a, b);
/* To test const eval on DivMod
c = new_DivMod(get_store(), a, b);
@@
-74,8
+74,8
@@
main(void)
x = new_Return (get_store (), 2, in);
}
x = new_Return (get_store (), 2, in);
}
- add_in_edge (
irg->end_block
, x);
- mature_block (
irg->end_block
);
+ add_in_edge (
get_irg_end_block(irg)
, x);
+ mature_block (
get_irg_end_block(irg)
);
printf("Optimizing ...\n");
dead_node_elimination(irg);
printf("Optimizing ...\n");
dead_node_elimination(irg);