Simplify edited_file::print_diff
authorDavid Malcolm <dmalcolm@redhat.com>
Tue, 13 Sep 2016 00:07:52 +0000 (00:07 +0000)
committerDavid Malcolm <dmalcolm@gcc.gnu.org>
Tue, 13 Sep 2016 00:07:52 +0000 (00:07 +0000)
commite5e866b429ae442171c3227f1e470bab31299a8e
tree700f03be8ce25edb4b9054dae6c9b978a9763d6c
parent54700e2e7f11d6715670182ee37a378a89d77a12
Simplify edited_file::print_diff

gcc/ChangeLog:
* edit-context.c (edited_line::get_len): New accessor.
(edited_file::print_diff): Split out hunk-printing into...
(edited_file::print_diff_hunk): New method.
(edited_file::print_diff_line): New method.

From-SVN: r240103
gcc/ChangeLog
gcc/edit-context.c