X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fcommon%2Ffirmwalk.c;h=ff02992e44bf0f4178ef650a5652958eed5c280f;hb=afbbc0b1ccd684c4c24bfd43d0f994123245f39f;hp=fe38a301054032b4cbde74c88489493994dc33c8;hpb=1ec30d95387eb392ba5a1adc7958ebd91383d59c;p=libfirm diff --git a/ir/common/firmwalk.c b/ir/common/firmwalk.c index fe38a3010..ff02992e4 100644 --- a/ir/common/firmwalk.c +++ b/ir/common/firmwalk.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -229,21 +229,21 @@ void *get_firm_walk_link(void *thing) * @param env Environment pointer (currently unused) */ static -void fw_collect_tore(type_or_ent *tore, void *env) +void fw_collect_tore(type_or_ent tore, void *env) { ir_type *tp; ir_entity *ent; - switch (get_kind(tore)) { + switch (get_kind(tore.ent)) { case k_entity: - ent = (ir_entity *)tore; + ent = tore.ent; /* append entity to list */ set_entity_link(ent, NULL); if (!pmap_contains(entity_map, ent)) pmap_insert(entity_map, ent, env); break; case k_type: - tp = (ir_type *)tore; + tp = tore.typ; /* append type to list */ set_type_link(tp, NULL); @@ -266,6 +266,7 @@ static void fw_collect_irn(ir_node *irn, void *env) { fw_data *data; + (void) env; /* block nodes. */ if (is_Block(irn)) { @@ -286,6 +287,7 @@ void fw_collect_irn(ir_node *irn, void *env) static void fw_free_colleted_data(ir_node *irn, void *env) { + (void) env; /* Free node list from blocks */ if (is_Block(irn)) {