genmatch.c (fprintf_indent): New function.
authorMichael Matz <matz@suse.de>
Thu, 9 Jul 2015 15:19:46 +0000 (15:19 +0000)
committerMichael Matz <matz@gcc.gnu.org>
Thu, 9 Jul 2015 15:19:46 +0000 (15:19 +0000)
commitc551c21da8eca5bbc4798b7db33c8f3c9f39ec06
tree05bf719f17a57b98b7d4c73716eeeae93529a1fe
parentcb1fd5b43f7bd2b21e4418184f4b496a009fbd59
genmatch.c (fprintf_indent): New function.

* genmatch.c (fprintf_indent): New function.
(operand::gen_transform): Add indent parameter.
(expr::gen_transform, c_expr::gen_transform,
capture::gen_transform): Ditto and use fprintf_indent.
(dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
(dt_operand::gen, dt_operand::gen_predicate,
dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
(decision_tree::gen_gimple): Adjust calls and indent generated
code.
(decision_tree::gen_generic): Ditto.
(write_predicate): Ditto.

From-SVN: r225617
gcc/ChangeLog
gcc/genmatch.c