diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-09 20:46:03 -0400 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-07-13 12:06:57 +0000 |
commit | d7f5c14279340d4da5f2355318b1292f7f9c2de7 (patch) | |
tree | 0b119477dea57457590a7b2b3d5028327b0ed21d | |
parent | b75357f4a1835dcd288df67402340b4cb6b96c12 (diff) | |
download | gcc-d7f5c14279340d4da5f2355318b1292f7f9c2de7.zip gcc-d7f5c14279340d4da5f2355318b1292f7f9c2de7.tar.gz gcc-d7f5c14279340d4da5f2355318b1292f7f9c2de7.tar.bz2 |
Remove Linemap::start_line
gcc/rust/ChangeLog:
* lex/rust-lex.cc
(Lexer::start_line): Use linemap_line_start.
* rust-linemap.cc
(Linemap::start_line): Remove.
* rust-linemap.h
(Linemap::start_line): Remove.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
-rw-r--r-- | gcc/rust/lex/rust-lex.cc | 2 | ||||
-rw-r--r-- | gcc/rust/rust-linemap.cc | 8 | ||||
-rw-r--r-- | gcc/rust/rust-linemap.h | 5 |
3 files changed, 1 insertions, 14 deletions
diff --git a/gcc/rust/lex/rust-lex.cc b/gcc/rust/lex/rust-lex.cc index ec9b833..6506239 100644 --- a/gcc/rust/lex/rust-lex.cc +++ b/gcc/rust/lex/rust-lex.cc @@ -2523,7 +2523,7 @@ void Lexer::start_line (int current_line, int current_column) { if (line_map) - line_map->start_line (current_line, current_column); + linemap_line_start (line_table, current_line, current_column); } } // namespace Rust diff --git a/gcc/rust/rust-linemap.cc b/gcc/rust/rust-linemap.cc index 9004d92..e3b31a9 100644 --- a/gcc/rust/rust-linemap.cc +++ b/gcc/rust/rust-linemap.cc @@ -67,14 +67,6 @@ Linemap::stop () this->in_file_ = false; } -// Start a new line. - -void -Linemap::start_line (unsigned lineno, unsigned linesize) -{ - linemap_line_start (line_table, lineno, linesize); -} - // Return the Linemap to use for the gcc backend. Linemap * diff --git a/gcc/rust/rust-linemap.h b/gcc/rust/rust-linemap.h index 68afbc1..141dfdc 100644 --- a/gcc/rust/rust-linemap.h +++ b/gcc/rust/rust-linemap.h @@ -47,11 +47,6 @@ public: // 0, but it will be non-zero if the Rust source has a //line comment. void start_file (const char *file_name, unsigned int line_begin); - // Subsequent Location values will come from the line LINE_NUMBER, - // in the current file. LINE_SIZE is the size of the line in bytes. - // This will normally be called for every line in a source file. - void start_line (unsigned int line_number, unsigned int line_size); - // Stop generating Location values. This will be called after all // input files have been read, in case any cleanup is required. void stop (); |