/*
- * 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.
*
#include "irnode_t.h"
#include "irprog_t.h"
#include "irgwalk.h"
-#include "typewalk.h"
#include "irtools.h"
#include "array.h"
* @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);
void fw_collect_irn(ir_node *irn, void *env)
{
fw_data *data;
+ (void) env;
/* block nodes. */
if (is_Block(irn)) {
static
void fw_free_colleted_data(ir_node *irn, void *env)
{
+ (void) env;
/* Free node list from blocks */
if (is_Block(irn))
{