libcpp: remove redundant parameter from rich_location::set_range

gcc/c-family/ChangeLog:
	* c-common.c (c_cpp_error): Remove redundant "line_table"
	parameter from call to rich_location::set_range.
	(maybe_suggest_missing_token_insertion): Likewise.

gcc/ChangeLog:
	* pretty-print.c (text_info::set_location): Remove redundant
	"line_table" parameter from call to rich_location::set_range.

libcpp/ChangeLog:
	* include/line-map.h (rich_location::set_range): Remove redundant
	line_maps * parameter.
	* line-map.c (rich_location::set_range): Likewise.

From-SVN: r262913
This commit is contained in:
David Malcolm
2018-07-20 21:39:14 +00:00
committed by David Malcolm
parent 0d7f906520
commit 181463c271
7 changed files with 23 additions and 7 deletions
+6
View File
@@ -1,3 +1,9 @@
2018-07-20 David Malcolm <dmalcolm@redhat.com>
* include/line-map.h (rich_location::set_range): Remove redundant
line_maps * parameter.
* line-map.c (rich_location::set_range): Likewise.
2018-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
PR 69558
+1 -2
View File
@@ -1639,8 +1639,7 @@ class rich_location
add_range (source_location loc, bool show_caret_p);
void
set_range (line_maps *set, unsigned int idx, source_location loc,
bool show_caret_p);
set_range (unsigned int idx, source_location loc, bool show_caret_p);
unsigned int get_num_locations () const { return m_ranges.count (); }
+2 -2
View File
@@ -2104,8 +2104,8 @@ rich_location::add_range (source_location loc, bool show_caret_p)
- the "%C" and "%L" format codes in the Fortran frontend. */
void
rich_location::set_range (line_maps * /*set*/, unsigned int idx,
source_location loc, bool show_caret_p)
rich_location::set_range (unsigned int idx, source_location loc,
bool show_caret_p)
{
/* We can either overwrite an existing range, or add one exactly
on the end of the array. */