X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=testprograms%2Fidentify_types.c;h=0a1b706bd00f43f77b29ce2aa58d12548a9fdf9f;hb=a644cbe05b6cf782f907f84701dba8faf5e995f9;hp=48f12e7f103effa06f912126747efe1f545008db;hpb=5614a836c787107e15fe98b8f44cb21121ac71ac;p=libfirm diff --git a/testprograms/identify_types.c b/testprograms/identify_types.c index 48f12e7f1..0a1b706bd 100644 --- a/testprograms/identify_types.c +++ b/testprograms/identify_types.c @@ -32,9 +32,12 @@ int main(int argc, char **argv) /** init library */ firm_parameter_t params; + type_identify_if_t params2; memset (¶ms, 0, sizeof(params)); params.size = sizeof(params); - params.compare_types_func = compare_names; + params2.cmp = compare_names; + params2.hash = NULL; + params.ti_if = ¶ms2; init_firm(¶ms); @@ -59,7 +62,7 @@ int main(int argc, char **argv) */ printf("Done building the graph. Dumping it.\n"); - dump_all_types(); + dump_all_types(0); printf("use xvcg to view this graph:\n"); printf("/ben/goetz/bin/xvcg GRAPHNAME\n\n");