renamed all type * to ir_type *
[libfirm] / ir / ir / irvrfy_t.h
index 292e90e..e3531f6 100644 (file)
@@ -13,6 +13,7 @@
 #define _IRVRFY_T_H_
 
 #include "irvrfy.h"
+#include "irdump.h"
 
 extern node_verification_t opt_do_node_verification;
 extern const char *firm_vrfy_failure_msg;
@@ -34,7 +35,7 @@ extern const char *firm_vrfy_failure_msg;
 do { \
   if (opt_do_node_verification == NODE_VERIFICATION_ON) {\
     if (!(expr) && current_ir_graph != get_const_code_irg()) \
-    dump_ir_block_graph(current_ir_graph, "-assert"); \
+      dump_ir_block_graph(current_ir_graph, "-assert"); \
     assert((expr) && string); } \
   if (!(expr)) { \
     if (opt_do_node_verification == NODE_VERIFICATION_REPORT) \
@@ -51,8 +52,11 @@ do { \
     if (opt_do_node_verification != NODE_VERIFICATION_ERROR_ONLY) { blk; } \
     if (opt_do_node_verification == NODE_VERIFICATION_REPORT) \
       fprintf(stderr, #expr " : " string "\n"); \
-    else if (opt_do_node_verification == NODE_VERIFICATION_ON) \
+    else if (opt_do_node_verification == NODE_VERIFICATION_ON) { \
+      if (!(expr) && current_ir_graph != get_const_code_irg()) \
+        dump_ir_block_graph(current_ir_graph, "-assert"); \
       assert((expr) && string); \
+    } \
     return (ret); \
   } \
 } while(0)
@@ -60,8 +64,8 @@ do { \
 #endif
 
 /**
- * Set the default verify_node and verify_proj_node operation.
+ * Set the default verify_node and verify_proj_node operation for an ir_op_ops.
  */
-void firm_set_default_verifyer(ir_op *op);
+void firm_set_default_verifyer(opcode code, ir_op_ops *ops);
 
 #endif /* _IRVRFY_T_H_ */