X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fana%2Ftrouts.c;h=fe1e752b36b61c3207814c008f595d4d8be4616a;hb=d652537f11d5c3262930cc7f4962c5b1858e649a;hp=96e6016f99f3ffb1165e843db7d23a13bdf1ed4d;hpb=b75bd7505027badb025b45a301f8ee84d1f9e6ae;p=libfirm diff --git a/ir/ana/trouts.c b/ir/ana/trouts.c index 96e6016f9..fe1e752b3 100644 --- a/ir/ana/trouts.c +++ b/ir/ana/trouts.c @@ -24,9 +24,7 @@ * @date 29.10.2004 * @version $Id$ */ -#ifdef HAVE_CONFIG_H #include "config.h" -#endif #include "irnode.h" #include "trouts.h" @@ -187,7 +185,7 @@ static ir_type **get_type_arraytype_array(const ir_type *tp) { return res; } -const void set_type_arraytype_array(const ir_type *tp, ir_type **pts) { +void set_type_arraytype_array(const ir_type *tp, ir_type **pts) { ir_type **old = pmap_get(type_arraytype_map, tp); if (old != pts) pmap_insert(type_arraytype_map, tp, (void *)pts); @@ -548,10 +546,10 @@ static void chain_accesses(ir_node *n, void *env) { ir_node *addr; (void) env; - if (get_irn_op(n) == op_Alloc) { + if (is_Alloc(n)) { add_type_alloc(get_Alloc_type(n), n); return; - } else if (get_irn_op(n) == op_Cast) { + } else if (is_Cast(n)) { add_type_cast(get_Cast_type(n), n); return; } else if (is_Sel(n)) { @@ -562,7 +560,7 @@ static void chain_accesses(ir_node *n, void *env) { return; } else if (is_memop(n)) { addr = get_memop_ptr(n); - } else if (get_irn_op(n) == op_Call) { + } else if (is_Call(n)) { addr = get_Call_ptr(n); if (! is_Sel(addr)) return; /* Sels before Calls mean a Load / polymorphic Call. */ } else {