From: Michael Beck Date: Wed, 19 Oct 2005 09:46:47 +0000 (+0000) Subject: refactored ir_op_ops X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a9721d45253ba687b0d2583615c6a7859b217450;p=libfirm refactored ir_op_ops dumps -assert graph's when assertion kills the verifyer [r6745] --- diff --git a/ir/ir/irvrfy_t.h b/ir/ir/irvrfy_t.h index 10249ddc6..e3531f6bd 100644 --- a/ir/ir/irvrfy_t.h +++ b/ir/ir/irvrfy_t.h @@ -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_ */