remove unused code
[libfirm] / testprograms / identify_types.c
index ab3fce5..0a1b706 100644 (file)
@@ -28,10 +28,18 @@ int main(int argc, char **argv)
   printf("\nCreating type information for IDENTIFY_TYPES ...\n");
 
 
-  compare_types_func = compare_names;
+
 
   /** init library */
-  init_firm (NULL);
+  firm_parameter_t params;
+  type_identify_if_t params2;
+  memset (&params, 0, sizeof(params));
+  params.size = sizeof(params);
+  params2.cmp = compare_names;
+  params2.hash = NULL;
+  params.ti_if = &params2;
+  init_firm(&params);
+
 
   i1 = new_id_from_str("type1");
   i2 = new_id_from_str("type2");
@@ -54,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");