From fe97255c29024535e8c49663a4abb8d419073ab1 Mon Sep 17 00:00:00 2001 From: Owen Avery Date: Thu, 31 Aug 2023 11:25:47 -0400 Subject: gccrs: 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 --- gcc/rust/rust-gcc.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/rust/rust-gcc.cc') diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc index c3db37f..5ed7306 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 ()); } -- cgit v1.1