summaryrefslogtreecommitdiffstats
path: root/libcpp/include
diff options
context:
space:
mode:
authorgchare <gchare@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-15 20:35:58 +0000
committergchare <gchare@138bc75d-0d04-0410-961f-82ee72b054a4>2011-08-15 20:35:58 +0000
commit80ea6373487e87586f483fdb01c974f6757823dc (patch)
treef0b82291b2916fbc64b32cd6b2aa4f506273a69f /libcpp/include
parent76fa5db42b73113f48deff732815af6637379661 (diff)
downloadppe42-gcc-80ea6373487e87586f483fdb01c974f6757823dc.tar.gz
ppe42-gcc-80ea6373487e87586f483fdb01c974f6757823dc.zip
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 'libcpp/include')
-rw-r--r--libcpp/include/line-map.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/libcpp/include/line-map.h b/libcpp/include/line-map.h
index f1d5bee801b..3c84035e95f 100644
--- a/libcpp/include/line-map.h
+++ b/libcpp/include/line-map.h
@@ -165,23 +165,6 @@ extern const struct line_map *linemap_lookup
/* Nonzero if the map is at the bottom of the include stack. */
#define MAIN_FILE_P(MAP) ((MAP)->included_from < 0)
-/* Set LOC to a source position that is the same line as the most recent
- linemap_line_start, but with the specified TO_COLUMN column number. */
-
-#define LINEMAP_POSITION_FOR_COLUMN(LOC, SET, TO_COLUMN) do { \
- unsigned int to_column = (TO_COLUMN); \
- struct line_maps *set = (SET); \
- if (__builtin_expect (to_column >= set->max_column_hint, 0)) \
- (LOC) = linemap_position_for_column (set, to_column); \
- else { \
- source_location r = set->highest_line; \
- r = r + to_column; \
- if (r >= set->highest_location) \
- set->highest_location = r; \
- (LOC) = r; \
- }} while (0)
-
-
extern source_location
linemap_position_for_column (struct line_maps *set, unsigned int to_column);
OpenPOWER on IntegriCloud