missing include added
[libfirm] / ir / be / bechordal_draw.c
index 6f4ef2f..137eb2c 100644 (file)
@@ -75,6 +75,7 @@ static int get_width(const plotter_t *_self) {
 }
 
 static void plotter_default_free(plotter_t *self) {
+       (void) self;
 }
 
 typedef struct {
@@ -348,6 +349,8 @@ static color_t *reg_to_color(const draw_chordal_env_t *env,
 {
        int             phi_arg = 0;
        const ir_edge_t *edge;
+       (void) env;
+       (void) rel_bl;
 
        foreach_out_edge(irn, edge)
                phi_arg |= is_Phi(edge->src);
@@ -445,13 +448,16 @@ static void draw_block(ir_node *bl, void *data)
 static void draw(draw_chordal_env_t *env, const rect_t *start_box)
 {
        plotter_t *p = env->plotter;
+       be_lv_t *lv;
        rect_t bbox;
 
        bbox.x = bbox.y = 0;
        bbox.w = start_box->w + 2 * env->opts->x_margin;
        bbox.h = start_box->h + 2 * env->opts->y_margin;
 
-       be_assure_liveness(env->chordal_env->birg);
+       lv = be_assure_liveness(env->chordal_env->birg);
+       be_liveness_assure_sets(lv);
+       be_liveness_assure_chk(lv);
 
        p->vtab->begin(p, &bbox);
        irg_block_walk_graph(env->chordal_env->irg, draw_block, NULL, env);