-
-/** Borrowed from interprete.c
-static entity *hunt_for_entity (ir_node *addr, ir_node *load) {
- ir_op *op = get_irn_op(addr);
- if (op == op_Sel)
- return get_Sel_entity(addr);
- if (op == op_Const) {
- tarval *tv = get_Const_tarval(addr);
- assert(tarval_is_entity(tv));
- return get_tarval_entity(tv);
- }
-
- if(get_irn_opcode(load) == iro_Load)
- return(NULL);
- assert(0 && "unexpected address expression.");
- return NULL;
-}
-*/