diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-07-08 22:28:30 -0400 |
---|---|---|
committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2024-01-16 18:49:35 +0100 |
commit | 7b6c52cf4ef53d4f4816cbcd7e086daa1c872d29 (patch) | |
tree | 60b94aa91740d1f934db94f066b62be1f42fe9e3 /gcc/testsuite/rust/compile/dup_fields.rs | |
parent | 4e71511a676368fc40dd0bcec7d7082f41cd8bf7 (diff) | |
download | gcc-7b6c52cf4ef53d4f4816cbcd7e086daa1c872d29.zip gcc-7b6c52cf4ef53d4f4816cbcd7e086daa1c872d29.tar.gz gcc-7b6c52cf4ef53d4f4816cbcd7e086daa1c872d29.tar.bz2 |
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>
Diffstat (limited to 'gcc/testsuite/rust/compile/dup_fields.rs')
0 files changed, 0 insertions, 0 deletions