]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Remove Linemap::start_line
authorOwen Avery <powerboat9.gamer@gmail.com>
Mon, 10 Jul 2023 00:46:03 +0000 (20:46 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:49:36 +0000 (18:49 +0100)
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>
gcc/rust/lex/rust-lex.cc
gcc/rust/rust-linemap.cc
gcc/rust/rust-linemap.h

index 6085a8358017d9d0c81d84f52bcc68ca698915ed..1e4a362231b4c649f133356c4086aa8977a1d7f4 100644 (file)
@@ -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
index 627f904ce28541c8ac110be29af8c7dbd8516817..9abafd48492ba539899646f6d38723f8dd1422cc 100644 (file)
@@ -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 *
index 5ed8ecf56834cc670f8eeb310012164a00f926a5..6d159e77102f28e5d7fcea88376e36a071fb7af6 100644 (file)
@@ -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 ();