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/lex.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/lex.c')
-rw-r--r-- | libcpp/lex.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcpp/lex.c b/libcpp/lex.c index d29f36d..d460b98 100644 --- a/libcpp/lex.c +++ b/libcpp/lex.c @@ -1975,8 +1975,8 @@ _cpp_lex_direct (cpp_reader *pfile) } c = *buffer->cur++; - LINEMAP_POSITION_FOR_COLUMN (result->src_loc, pfile->line_table, - CPP_BUF_COLUMN (buffer, buffer->cur)); + result->src_loc = linemap_position_for_column (pfile->line_table, + CPP_BUF_COLUMN (buffer, buffer->cur)); switch (c) { |