- /* generate two constant pointers to string constants */
- /* this simulates two global variables, a and b point to these variables */
- a = new_Const (mode_P, tarval_P_from_str ("VAR_A"));
- b = new_Const (mode_P, tarval_P_from_str ("VAR_B"));
-
- /* set VAR_A and VAR_B to constant values */
+ /* create two global variables, a and b point to these variables */
+ a = new_simpleSel(
+ get_store(),
+ get_irg_globals(irg),
+ new_entity(get_glob_type(),id_from_str("VAR_A",6),prim_t_int));
+ b = new_simpleSel(
+ get_store(),
+ get_irg_globals(irg),
+ new_entity(get_glob_type(),id_from_str("VAR_B",6),prim_t_int));
+ /* set VAR_A and VAR_B to constant values */