* @date 29.10.2004
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
#include "irnode.h"
#include "trouts.h"
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);
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)) {
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 {