]> git.ipfire.org Git - thirdparty/gcc.git/commit
gccrs: Merge Gcc_linemap into Linemap
authorOwen Avery <powerboat9.gamer@gmail.com>
Sun, 9 Jul 2023 02:28:30 +0000 (22:28 -0400)
committerArthur Cohen <arthur.cohen@embecosm.com>
Tue, 16 Jan 2024 17:49:35 +0000 (18:49 +0100)
commit7b6c52cf4ef53d4f4816cbcd7e086daa1c872d29
tree60b94aa91740d1f934db94f066b62be1f42fe9e3
parent4e71511a676368fc40dd0bcec7d7082f41cd8bf7
gccrs: Merge Gcc_linemap into Linemap

gcc/rust/ChangeLog:

* rust-linemap.cc
(class Gcc_linemap): Remove.
(Gcc_linemap::start_file): Move to...
(Linemap::start_file): ... here.
(Gcc_linemap::to_string): Move to...
(Linemap::to_string): ... here.
(Gcc_linemap::stop): Move to...
(Linemap::stop): ... here.
(Gcc_linemap::start_line): Move to...
(Linemap::start_line): ... here.
(Gcc_linemap::get_location): Move to...
(Linemap::get_location): ... here.
(rust_get_linemap): Use Linemap.
* rust-linemap.h
(Linemap::in_file_): New field from Gcc_linemap.
(Linemap::Linemap): Initialize in_file_.
(Linemap::~Linemap): Make non-virtual.
(Linemap::start_file): Likewise.
(Linemap::start_line): Likewise.
(Linemap::get_location): Likewise.
(Linemap::stop): Likewise.
(Linemap::to_string): Likewise.

Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
gcc/rust/rust-linemap.cc
gcc/rust/rust-linemap.h