X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Ftr%2Ftr_inheritance.c;h=ef0c6d49d779926fca60e536088a5d83a0acd142;hb=a5188cbc59d016d7a577c6bccdda4e1cc8801631;hp=b8aabd7fe2a875676bbc21b9454423526c49eeef;hpb=02a879a0c7b7fc0873d5637e633d188856048abc;p=libfirm diff --git a/ir/tr/tr_inheritance.c b/ir/tr/tr_inheritance.c index b8aabd7fe..ef0c6d49d 100644 --- a/ir/tr/tr_inheritance.c +++ b/ir/tr/tr_inheritance.c @@ -27,14 +27,12 @@ # include "config.h" #endif -#include "type.h" -#include "entity.h" -#include "typewalk.h" +#include "typerep.h" #include "irgraph_t.h" #include "irprog_t.h" +#include "irprintf.h" #include "pset.h" #include "set.h" -#include "mangle.h" #include "irgwalk.h" #include "irflag.h" @@ -157,6 +155,8 @@ static set *tr_inh_trans_set = NULL; static int tr_inh_trans_cmp(const void *e1, const void *e2, size_t size) { tr_inh_trans_tp *ef1 = (tr_inh_trans_tp *)e1; tr_inh_trans_tp *ef2 = (tr_inh_trans_tp *)e2; + (void) size; + return (ef1->kind != ef2->kind); } @@ -659,10 +659,10 @@ void verify_irn_class_cast_state(ir_node *n, void *env) { } if (!(this_state >= ccs->expected_state)) { - printf(" Node is "); DDMN(n); - printf(" totype "); DDMT(totype); - printf(" fromtype "); DDMT(fromtype); - printf(" this_state: %s, exp. state: %s\n", + ir_printf(" Node is %+F\n", n); + ir_printf(" totype %+F\n", totype); + ir_printf(" fromtype %+F\n", fromtype); + ir_printf(" this_state: %s, exp. state: %s\n", get_class_cast_state_string(this_state), get_class_cast_state_string(ccs->expected_state)); assert(this_state >= ccs->expected_state && @@ -684,8 +684,7 @@ void verify_irg_class_cast_state(ir_graph *irg) { irg_walk_graph(irg, NULL, verify_irn_class_cast_state, &env); if ((env.worst_situation > env.expected_state) && get_firm_verbosity()) { - printf("Note: class cast state is set lower than reqired in graph\n "); - DDMG(irg); + ir_printf("Note: class cast state is set lower than reqired in graph \n\t%+F\n", irg); printf(" state is %s, reqired is %s\n", get_class_cast_state_string(env.expected_state), get_class_cast_state_string(env.worst_situation));