Commit 1ffc031d authored by Matthias Braun's avatar Matthias Braun
Browse files

simplify irg_walk_anchors

parent 78f1d82d
......@@ -339,15 +339,7 @@ void irg_block_walk_graph(ir_graph *irg, irg_walk_func *pre,
void irg_walk_anchors(ir_graph *irg, irg_walk_func *pre, irg_walk_func *post, void *env)
{
ir_graph * rem = current_ir_graph;
current_ir_graph = irg;
ir_reserve_resources(irg, IR_RESOURCE_IRN_VISITED);
inc_irg_visited(irg);
irg_walk_2(irg->anchor, pre, post, env);
ir_free_resources(irg, IR_RESOURCE_IRN_VISITED);
current_ir_graph = rem;
irg_walk(irg->anchor, pre, post, env);
}
typedef struct walk_env {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment