LINEMAP_POSITION_FOR_COLUMN had the exact same effect as linemap_position_for_column...

LINEMAP_POSITION_FOR_COLUMN had the exact same effect as
linemap_position_for_column, removed it and updated users
to use linemap_position_for_column instead

        libcpp/ChangeLog
	* include/line-map.h (LINEMAP_POSITION_FOR_COLUMN): Remove.
	Update all users to use linemap_position_for_column instead.

        gcc/go/ChangeLog
	* gofrontend/lex.cc (Lex::location): Update to use
	linemap_position_for_column instead.
        (Lex::earlier_location): Likewise.

From-SVN: r177768
This commit is contained in:
Gabriel Charette 2011-08-15 20:35:58 +00:00 committed by Gabriel Charette
parent e535f1b229
commit 3f6ced102d
6 changed files with 16 additions and 26 deletions

View file

@ -142,7 +142,7 @@ _cpp_preprocess_dir_only (cpp_reader *pfile,
flags |= DO_LINE_COMMENT;
else if (!(flags & DO_SPECIAL))
/* Mark the position for possible error reporting. */
LINEMAP_POSITION_FOR_COLUMN (loc, pfile->line_table, col);
loc = linemap_position_for_column (pfile->line_table, col);
break;