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 /gcc | |
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 'gcc')
-rw-r--r-- | gcc/go/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/go/gofrontend/lex.cc | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/gcc/go/ChangeLog b/gcc/go/ChangeLog index 549bc03..269d89a 100644 --- a/gcc/go/ChangeLog +++ b/gcc/go/ChangeLog @@ -1,3 +1,9 @@ +2011-08-15 Gabriel Charette <gchare@google.com> + + * gofrontend/lex.cc (Lex::location): Update to use + linemap_position_for_column instead. + (Lex::earlier_location): Likewise. + 2011-08-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> * Make-lang.in (gccgo$(exeext)): Add $(EXTRA_GCC_LIBS). diff --git a/gcc/go/gofrontend/lex.cc b/gcc/go/gofrontend/lex.cc index 9f26911..167c7dd 100644 --- a/gcc/go/gofrontend/lex.cc +++ b/gcc/go/gofrontend/lex.cc @@ -518,9 +518,7 @@ Lex::require_line() source_location Lex::location() const { - source_location location; - LINEMAP_POSITION_FOR_COLUMN(location, line_table, this->lineoff_ + 1); - return location; + return linemap_position_for_column (line_table, this->lineoff_ + 1); } // Get a location slightly before the current one. This is used for @@ -529,9 +527,7 @@ Lex::location() const source_location Lex::earlier_location(int chars) const { - source_location location; - LINEMAP_POSITION_FOR_COLUMN(location, line_table, this->lineoff_ + 1 - chars); - return location; + return linemap_position_for_column (line_table, this->lineoff_ + 1 - chars); } // Get the next token. |