X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=ir%2Fana%2Ftrouts.c;h=6a942648ebec5d2522af8ae7f8d48823cec6ad64;hb=07c77ebb4b165865ecdfc45a048ac55dea14d84e;hp=c2596420a4e62e136c5e01acbdce0c58c5d38bf3;hpb=550ae1cfb30f5f8ea46c7bef0816acbac6f944c5;p=libfirm diff --git a/ir/ana/trouts.c b/ir/ana/trouts.c index c2596420a..6a942648e 100644 --- a/ir/ana/trouts.c +++ b/ir/ana/trouts.c @@ -22,11 +22,10 @@ * @brief Reverse edges that reference types/entities. * @author Goetz Lindenmaier * @date 29.10.2004 - * @version $Id$ */ #include "config.h" -#include "trouts.h" +#include "trouts_t.h" #include "array.h" #include "pmap.h" @@ -391,7 +390,6 @@ size_t get_class_n_downcasts(const ir_type *clss) return n_instances; } -/* Cast node that creates an instance of this type */ ir_node *get_type_cast(const ir_type *tp, size_t pos) { ir_node **casts; @@ -604,8 +602,10 @@ static void chain_accesses(ir_node *n, void *env) } else if (is_SymConst_addr_ent(n)) { add_entity_reference(get_SymConst_entity(n), n); return; - } else if (is_memop(n)) { - addr = get_memop_ptr(n); + } else if (is_Store(n)) { + addr = get_Store_ptr(n); + } else if (is_Load(n)) { + addr = get_Load_ptr(n); } else if (is_Call(n)) { addr = get_Call_ptr(n); if (! is_Sel(addr)) return; /* Sels before Calls mean a Load / polymorphic Call. */ @@ -636,7 +636,6 @@ static void chain_types(ir_type *tp) } } -/* compute the trouts data structures. */ void compute_trouts(void) { size_t i;