little cleanup
[libfirm] / ir / ir / irvrfy_t.h
index 10249dd..e3531f6 100644 (file)
@@ -52,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)
@@ -61,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_ */