Remove obsolete outs invalidation
[libfirm] / ir / be / bestabs.c
index 73bc8a8..02c243d 100644 (file)
@@ -336,18 +336,18 @@ static void gen_pointer_type(wenv_t *env, ir_type *tp)
 static void print_array_type(stabs_handle *h, ir_type *tp, int local)
 {
        ir_type      *etp     = get_array_element_type(tp);
-       int          i, n     = get_array_n_dimensions(tp);
+       size_t       i, n     = get_array_n_dimensions(tp);
        unsigned     type_num = local ? h->next_type_nr++ : get_type_number(h, tp);
-       int          *perm;
+       size_t       *perm;
 
        be_emit_irprintf("%u=a", type_num);
-       NEW_ARR_A(int, perm, n);
+       perm = ALLOCAN(size_t, n);
        for (i = 0; i < n; ++i) {
                perm[i] = get_array_order(tp, i);
        }
 
        for (i = 0; i < n; ++i) {
-               int dim = perm[i];
+               size_t dim = perm[i];
 
                if (is_Const(get_array_lower_bound(tp, dim)) && is_Const(get_array_upper_bound(tp, dim))) {
                        long min = get_array_lower_bound_int(tp, dim);
@@ -699,7 +699,8 @@ static void stabs_method_begin(dbg_handle *handle, const ir_entity *ent)
 
        /* create the method entry */
        mtp = get_entity_type(ent);
-       mtp = get_type_unlowered(mtp);
+       if (is_lowered_type(mtp))
+               mtp = get_associated_type(mtp);
        if (get_method_n_ress(mtp) > 0)
                rtp = get_method_res_type(mtp, 0);
        else