- add support for statistics and merge debug info
[libfirm] / ir / ana / trouts.c
index 96e6016..fe1e752 100644 (file)
@@ -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 {