X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Ffirmwalk.c;h=36cf5b05977b597e3b118cc55d9e26b614dcbc78;hb=51eff1cc020af2ed56d9ea226fe20faf801cac5b;hp=7dab4bf7a81f96b0605206c167ecb0e350c96d7a;hpb=aeb23b01b67da0551cc4eb5d3e3e0053ddc1ce6b;p=libfirm diff --git a/ir/common/firmwalk.c b/ir/common/firmwalk.c index 7dab4bf7a..36cf5b059 100644 --- a/ir/common/firmwalk.c +++ b/ir/common/firmwalk.c @@ -24,6 +24,7 @@ #include "irnode_t.h" #include "irprog_t.h" #include "irgwalk.h" +#include "typewalk.h" #include "irtools.h" #include "array.h" @@ -217,7 +218,7 @@ void *get_firm_walk_link(void *thing) static void fw_collect_tore(type_or_ent *tore, void *env) { - type *tp; + ir_type *tp; entity *ent; switch (get_kind(tore)) { @@ -229,7 +230,7 @@ void fw_collect_tore(type_or_ent *tore, void *env) pmap_insert(entity_map, ent, env); break; case k_type: - tp = (type *)tore; + tp = (ir_type *)tore; /* append type to list */ set_type_link(tp, NULL); @@ -374,7 +375,7 @@ void firm_walk(firm_walk_interface *wif) if (wif->do_type) { for (entry = pmap_first(type_map); entry; entry = pmap_next(type_map)) - wif->do_type((type *)entry->key, wif->env); + wif->do_type((ir_type *)entry->key, wif->env); } if (wif->do_type_finalize) wif->do_type_finalize(wif->env);