- mostly implemented access to outer frame variables, however offset, is wrong yet
[libfirm] / ir / be / bessadestrsimple.c
index 4fcf0fb..2c80476 100644 (file)
@@ -26,9 +26,7 @@
  */
 #ifdef NOT_PORTED
 
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -139,7 +137,7 @@ pset *be_get_var_values(set *vars, int var_nr) {
        return vi->values;
 }
 
-static INLINE ir_node *get_first_phi(ir_node **s) {
+static inline ir_node *get_first_phi(ir_node **s) {
        int i;
 
        for (i = ARR_LEN(s) - 1; i >= 0; --i) {
@@ -162,7 +160,7 @@ static void values_to_vars(ir_node *irn, void *env) {
        int             nr, i, build_vals = 0;
        ir_node         **vals;
 
-       if (arch_get_irn_reg_class(irn, -1) == NULL)
+       if (arch_get_irn_reg_class_out(irn) == NULL)
                return;
 
        vals = get_phi_class(pc, irn);
@@ -299,7 +297,7 @@ static void ssa_destr_simple_walker(ir_node *blk, void *env) {
                        if (arch_irn_is(phi, ignore))
                                continue;
 
-                       cls = arch_get_irn_reg_class(phi, -1);
+                       cls = arch_get_irn_reg_class_out(phi);
                        insert_copies(sde, cls, phi, pos, phi);
                }
        }