X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbechordal.c;h=a84ff8c3644882bdb56b3ea981f2a0ec947a672b;hb=fd0185b3d679980b9c4fcb3859231b1087ce66f7;hp=0640305191e1692e18ba08c00e9ce99e852c5433;hpb=8a327004fbf756b9c00fd7c5b86401f8e808660c;p=libfirm diff --git a/ir/be/bechordal.c b/ir/be/bechordal.c index 064030519..a84ff8c36 100644 --- a/ir/be/bechordal.c +++ b/ir/be/bechordal.c @@ -53,7 +53,7 @@ #define NO_COLOR (-1) -#undef DUMP_INTERVALS +#define DUMP_INTERVALS typedef struct _be_chordal_alloc_env_t { be_chordal_env_t *chordal_env; @@ -297,7 +297,7 @@ static ir_node *handle_constraints_at_perm(be_chordal_alloc_env_t *alloc_env, ir int colored = 0; for(precol = pset_first(pre_colored); precol; precol = pset_next(pre_colored)) { - arch_register_t *pre_col_reg = arch_get_irn_register(arch_env, precol); + const arch_register_t *pre_col_reg = arch_get_irn_register(arch_env, precol); if(!values_interfere(irn, precol)) { reg = arch_get_irn_register(arch_env, precol); @@ -596,10 +596,10 @@ void be_ra_chordal_color(be_chordal_env_t *chordal_env) char buf[128]; plotter_t *plotter; - ir_snprintf(buf, sizeof(buf), "ifg_%s_%F.eps", cls->name, irg); + ir_snprintf(buf, sizeof(buf), "ifg_%s_%F.eps", chordal_env->cls->name, irg); plotter = new_plotter_ps(buf); - draw_interval_tree(&draw_chordal_def_opts, chordal_env, plotter, env->arch_env, cls); + draw_interval_tree(&draw_chordal_def_opts, chordal_env, plotter); plotter_free(plotter); } #endif