diff options
author | gchare <gchare@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-15 20:35:58 +0000 |
---|---|---|
committer | gchare <gchare@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-08-15 20:35:58 +0000 |
commit | 80ea6373487e87586f483fdb01c974f6757823dc (patch) | |
tree | f0b82291b2916fbc64b32cd6b2aa4f506273a69f /gcc/go | |
parent | 76fa5db42b73113f48deff732815af6637379661 (diff) | |
download | gcc-80ea6373487e87586f483fdb01c974f6757823dc.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177768 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/go')
-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 549bc03712f..269d89a2b6c 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 9f26911a16c..167c7ddffc0 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. |