Skip to content

Commit d7f5c14

Browse files
powerboat9philberty
authored andcommitted
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 <[email protected]>
1 parent b75357f commit d7f5c14

File tree

3 files changed

+1
-14
lines changed

3 files changed

+1
-14
lines changed

gcc/rust/lex/rust-lex.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -2523,7 +2523,7 @@ void
25232523
Lexer::start_line (int current_line, int current_column)
25242524
{
25252525
if (line_map)
2526-
line_map->start_line (current_line, current_column);
2526+
linemap_line_start (line_table, current_line, current_column);
25272527
}
25282528

25292529
} // namespace Rust

gcc/rust/rust-linemap.cc

-8
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,6 @@ Linemap::stop ()
6767
this->in_file_ = false;
6868
}
6969

70-
// Start a new line.
71-
72-
void
73-
Linemap::start_line (unsigned lineno, unsigned linesize)
74-
{
75-
linemap_line_start (line_table, lineno, linesize);
76-
}
77-
7870
// Return the Linemap to use for the gcc backend.
7971

8072
Linemap *

gcc/rust/rust-linemap.h

-5
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ class Linemap
4747
// 0, but it will be non-zero if the Rust source has a //line comment.
4848
void start_file (const char *file_name, unsigned int line_begin);
4949

50-
// Subsequent Location values will come from the line LINE_NUMBER,
51-
// in the current file. LINE_SIZE is the size of the line in bytes.
52-
// This will normally be called for every line in a source file.
53-
void start_line (unsigned int line_number, unsigned int line_size);
54-
5550
// Stop generating Location values. This will be called after all
5651
// input files have been read, in case any cleanup is required.
5752
void stop ();

0 commit comments

Comments
 (0)