typedef struct walk_env {
unsigned spare_size; /**< the allowed spare size for table switches */
- struct obstack obst; /**< the obstack where data is allocated on */
int changed; /**< indicates whether a change was performed */
} walk_env_t;
*/
numcases = get_irn_n_outs(cond) - 1; // does not contain default case
- cases = obstack_alloc(&env->obst, numcases * sizeof(*cases));
+ NEW_ARR_A(case_data_t, cases, numcases);
default_pn = get_Cond_defaultProj(cond);
ifcas_env.sel = sel;
/* Connect new default case users */
set_irn_in(defblock, ifcas_env.defindex, ifcas_env.defusers);
-
- obstack_free(&env->obst, cases);
}
/**
current_ir_graph = irg;
- obstack_init(&env.obst);
env.spare_size = spare_size;
remove_critical_cf_edges(irg);
set_irg_loopinfo_inconsistent(irg);
}
- obstack_free(&env.obst, NULL);
current_ir_graph = rem;
}