little cleanup
[libfirm] / ir / ana2 / typalise.c
index d9500e4..365396c 100644 (file)
@@ -34,6 +34,8 @@
 # include "irgwalk.h"
 # include "xmalloc.h"
 # include "gnu_ext.h"
+# include "irdump.h"
+# include "typewalk.h"
 
 
 /*
@@ -65,7 +67,7 @@ static void cough_and_die (ir_node *node)
 */
 static type *java_lang_Throwable_tp = NULL;
 
-static type *get_java_lang_Throwable ()
+static type *get_java_lang_Throwable (void)
 {
   assert (NULL != java_lang_Throwable_tp);
 
@@ -524,13 +526,11 @@ static typalise_t *typalise_call (ir_node *call)
 
       fprintf (stdout, "%s: cannot handle Call[%li] (symconst_addr_name=\"%s\")\n",
                __FUNCTION__, get_irn_node_nr (call),
-               get_op_name (get_irn_op (call_ptr)),
                name);
       cough_and_die (call_ptr);
     } else if (get_SymConst_kind (call_ptr) == symconst_type_tag) {
       fprintf (stdout, "%s: cannot handle Call[%li] (symconst_type_tag)\n",
-               __FUNCTION__, get_irn_node_nr (call),
-               get_op_name (get_irn_op (call_ptr)));
+               __FUNCTION__, get_irn_node_nr (call));
       cough_and_die (call_ptr);
     } else {
       fprintf (stdout, "%s: cannot handle Call[%li] (%i)\n",
@@ -760,8 +760,10 @@ typalise_t *typalise (ir_node *node)
     typalise_t *ta = NULL;
 
     for (i = 0; i < n_ins; i ++) {
+      typalise_t *ta_in;
+
       phi_in = get_irn_n (node, i);
-      typalise_t *ta_in = typalise (phi_in);
+      ta_in = typalise (phi_in);
 
       if (NULL != ta_in) {
         ta = (NULL == ta) ? ta_in : ta_join (ta, ta_in);
@@ -857,7 +859,7 @@ typalise_t *typalise (ir_node *node)
 /*
   Initialise the Typalise module
 */
-void typalise_init ()
+void typalise_init (void)
 {
   if (NULL == java_lang_Throwable_tp) {
     class_walk_super2sub (find_java_lang_Throwable, NULL, NULL);
@@ -872,6 +874,14 @@ void typalise_init ()
 \f
 /*
   $Log$
+  Revision 1.11  2005/05/13 16:35:14  beck
+  made (void) prototypes
+  removed unused fprintf arguments
+
+  Revision 1.10  2005/05/06 12:02:34  beck
+  added missing includes
+  removed C99 features
+
   Revision 1.9  2005/03/22 13:56:09  liekweg
   "small" fix for exception b/d