Add rtx_jump_table_data::get_labels method
authorDavid Malcolm <dmalcolm@redhat.com>
Mon, 25 Aug 2014 20:45:08 +0000 (20:45 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Mon, 25 Aug 2014 20:45:08 +0000 (20:45 +0000)
commit95c43227c5170be95578e3209419c06b41d17fb4
tree9830f6f34a5652a0c7846c548b3436ea07f5bb78
parent6bb9bf637ae44ae9d07012fac08e35a446d11ea4
Add rtx_jump_table_data::get_labels method

gcc/
* rtl.h (rtx_jump_table_data::get_labels): New method.
* cfgbuild.c (make_edges): Replace hand-coded lookup of labels
with use of the new rtx_jump_table_data::get_labels method.
(purge_dead_tablejump_edges): Strengthen param "table" from rtx
to rtx_jump_table_data *.  Simplify by using get_labels method.
* cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
a dyn_cast, introducing local "table", using it to replace
label-lookup logic with a get_labels method call.
(patch_jump_insn): Simplify using get_labels method.
* dwarf2cfi.c (create_trace_edges): Likewise.
* rtlanal.c (label_is_jump_target_p): Likewise.

From-SVN: r214476
gcc/ChangeLog
gcc/cfgbuild.c
gcc/cfgrtl.c
gcc/dwarf2cfi.c
gcc/rtl.h
gcc/rtlanal.c