diff options
author | Gabriel Charette <gchare@google.com> | 2011-08-15 20:35:58 +0000 |
---|---|---|
committer | Gabriel Charette <gchare@gcc.gnu.org> | 2011-08-15 20:35:58 +0000 |
commit | 3f6ced102dddee2a41f6ae4e96c42a6580f8e279 (patch) | |
tree | f0b82291b2916fbc64b32cd6b2aa4f506273a69f /libcpp/directives-only.c | |
parent | e535f1b22917730c13fc85f91360288d456f054f (diff) | |
download | gcc-3f6ced102dddee2a41f6ae4e96c42a6580f8e279.zip gcc-3f6ced102dddee2a41f6ae4e96c42a6580f8e279.tar.gz gcc-3f6ced102dddee2a41f6ae4e96c42a6580f8e279.tar.bz2 |
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
Diffstat (limited to 'libcpp/directives-only.c')
-rw-r--r-- | libcpp/directives-only.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/directives-only.c b/libcpp/directives-only.c index e19f806..c6772af 100644 --- a/libcpp/directives-only.c +++ b/libcpp/directives-only.c @@ -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; |