diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-08-31 11:25:47 -0400 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-09-02 22:37:32 +0000 |
commit | b1956a4f70ee26dd6f02e7dc77787c456907943e (patch) | |
tree | dd394b68a46d794ab1eaf4f277603b1e6da6bb28 /gcc/rust/rust-gcc.cc | |
parent | cc42db3e7f03aed583ad5dc456ade978ceeaa87d (diff) | |
download | gcc-b1956a4f70ee26dd6f02e7dc77787c456907943e.zip gcc-b1956a4f70ee26dd6f02e7dc77787c456907943e.tar.gz gcc-b1956a4f70ee26dd6f02e7dc77787c456907943e.tar.bz2 |
Move debug-related functions into base class Backend
gcc/rust/ChangeLog:
* rust-backend.h
(Backend::debug): Make non-virtual.
(Backend::get_identifier_node): Likewise.
(Gcc_backend::debug): Remove.
(Gcc_backend::get_identifier_node): Remove.
* rust-gcc.cc
(Gcc_backend::debug): Rename to ...
(Backend::debug): ... here.
(Gcc_backend::get_identifier_node): Rename to ...
(Backend::get_identifier_node): ... here.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r-- | gcc/rust/rust-gcc.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc index ec4f87b..88560a1 100644 --- a/gcc/rust/rust-gcc.cc +++ b/gcc/rust/rust-gcc.cc @@ -322,19 +322,19 @@ Gcc_backend::Gcc_backend () } void -Gcc_backend::debug (tree t) +Backend::debug (tree t) { debug_tree (t); }; void -Gcc_backend::debug (Bvariable *t) +Backend::debug (Bvariable *t) { debug_tree (t->get_decl ()); }; tree -Gcc_backend::get_identifier_node (const std::string &str) +Backend::get_identifier_node (const std::string &str) { return get_identifier_with_length (str.data (), str.length ()); } |