aboutsummaryrefslogtreecommitdiff
path: root/gcc/go/gofrontend
diff options
context:
space:
mode:
authorGabriel Charette <gchare@google.com>2011-08-15 20:35:58 +0000
committerGabriel Charette <gchare@gcc.gnu.org>2011-08-15 20:35:58 +0000
commit3f6ced102dddee2a41f6ae4e96c42a6580f8e279 (patch)
treef0b82291b2916fbc64b32cd6b2aa4f506273a69f /gcc/go/gofrontend
parente535f1b22917730c13fc85f91360288d456f054f (diff)
downloadgcc-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/go/gofrontend')
-rw-r--r--gcc/go/gofrontend/lex.cc8
1 files changed, 2 insertions, 6 deletions
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.