GCOV: Vector refactoring II
authorMartin Liska <mliska@suse.cz>
Tue, 31 Oct 2017 11:59:14 +0000 (12:59 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Tue, 31 Oct 2017 11:59:14 +0000 (11:59 +0000)
commit4695d816a37abffa3fae55cbb1c874ec1e62446d
tree7b913dbe24fde2ebfa561fb05122974f0fea7b6e
parentc7432e76039d2c4fb7a00f0fbd261eec2238d42b
GCOV: Vector refactoring II

2017-10-31  Martin Liska  <mliska@suse.cz>

* gcov.c (struct line_info): Remove it's typedef.
(line_info::line_info): Add proper ctor.
(line_info::has_block): Do not use a typedef.
(struct source_info): Do not use typedef.
(circuit): Likewise.
(get_cycles_count): Likewise.
(output_intermediate_file): Iterate via vector iterator.
(add_line_counts): Use std::vector methods.
(accumulate_line_counts): Likewise.
(output_lines): Likewise.

From-SVN: r254261
gcc/ChangeLog
gcc/gcov.c