Simplify representation of locations of a block.
commit22ffab3bc2b44e6000d57c46eb17f700b51b30bf
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Apr 2017 12:50:29 +0000 (28 12:50 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 28 Apr 2017 12:50:29 +0000 (28 12:50 +0000)
tree00193b02d7b165adbaac47b7c22ff530c043bbbd
parentcc563837851b7b8b6b1e1f6d331212ee6cd54b09
Simplify representation of locations of a block.

2017-04-28  Martin Liska  <mliska@suse.cz>

* gcov.c (struct block_location_info): New struct.
(process_file): Fill up the new structure.
(read_graph_file): Replace usage of encoding by the newly added
struct.
(add_line_counts): Likewise.
(accumulate_line_counts): Remove usage of the union.
(function_info::function_info): New function.
(function_info::~function_info): Likewise.
(process_file): Call delete instead of release_function.
(release_function): Release the function.
(release_structures): Call delete instead of release_function.
(solve_flow_graph): Replace usage of num_blocks.
(find_exception_blocks): Likewise.
(output_lines): Fix GNU coding style.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@247372 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/gcov.c