X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgwalk.c;h=d59323930079a045785b574202c59815cf014995;hb=1852308bd33b77378f0fca9e5347d4f9082464c4;hp=f4726194eac8e14159e9795c53e7c7855c79dd73;hpb=a3b29d30722af7f8f6bae33f241be11db248c07d;p=libfirm diff --git a/ir/ir/irgwalk.c b/ir/ir/irgwalk.c index f4726194e..d59323930 100644 --- a/ir/ir/irgwalk.c +++ b/ir/ir/irgwalk.c @@ -22,7 +22,7 @@ * @brief Functions for traversing ir graphs * @author Boris Boesler, Goetz Lindenmaier, Michael Beck * @version $Id$ - * @summary + * @brief * traverse an ir graph * - execute the pre function before recursion * - execute the post function after recursion @@ -119,7 +119,6 @@ static void irg_walk_cg(ir_node * node, ir_visited_t visited, current_ir_graph = rem; } -#endif /** * Insert all ir_graphs in irg_set, that are (transitive) reachable. @@ -137,6 +136,7 @@ static void collect_irgs(ir_node * node, pset_new_t *irg_set) { } } } +#endif /** * specialized version of irg_walk_2, called if only pre callback exists @@ -726,7 +726,8 @@ void walk_const_code(irg_walk_func *pre, irg_walk_func *post, void *env) { my_env.env = env; /* Walk all types that can contain constant entities. */ - walk_types_entities(get_glob_type(), &walk_entity, &my_env); + for (i = 0; i < IR_SEGMENT_COUNT; i++) + walk_types_entities(get_segment_type((ir_segment_t) i), &walk_entity, &my_env); n_types = get_irp_n_types(); for (i = 0; i < n_types; i++) walk_types_entities(get_irp_type(i), &walk_entity, &my_env);