tree-switch-conversion.h (switch_decision_tree::emit_case_nodes): Add location_t...
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 16 Nov 2018 16:25:12 +0000 (16:25 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 16 Nov 2018 16:25:12 +0000 (16:25 +0000)
commit4359b6318f9cb0861b25cd174e8a1a07f1740c27
treeab78cd034280d2cd5b2839d4bfa3ee373ceb277e
parent83044e4fcc7b3f7514eaa84b31f44608ae5fbaf1
tree-switch-conversion.h (switch_decision_tree::emit_case_nodes): Add location_t parameter.

* tree-switch-conversion.h (switch_decision_tree::emit_case_nodes): Add
location_t parameter.
(switch_decision_tree::emit_cmp_and_jump_insns): Likewise.
(switch_decision_tree::do_jump_if_equal): Likewise.
* tree-switch-conversion.c (switch_decision_tree::emit): Pass location
of switch statement to emit_case_nodes.
(switch_decision_tree::emit_cmp_and_jump_insns): Add LOC parameter and
set it on the newly built GIMPLE comparison statement.
(switch_decision_tree::do_jump_if_equal): Likewise.
(switch_decision_tree::emit_case_nodes): Add LOC parameter and pass it
in calls to do_jump_if_equal as well as recursive calls.

From-SVN: r266213
gcc/ChangeLog
gcc/tree-switch-conversion.c
gcc/tree-switch-conversion.h