public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8000] gccrs: Remove Gcc_backend
@ 2024-01-16 18:12 Arthur Cohen
0 siblings, 0 replies; only message in thread
From: Arthur Cohen @ 2024-01-16 18:12 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:1f09a4fedca20c0b9068d4c466b360b449af5d56
commit r14-8000-g1f09a4fedca20c0b9068d4c466b360b449af5d56
Author: Owen Avery <powerboat9.gamer@gmail.com>
Date: Mon Sep 4 14:09:10 2023 -0400
gccrs: Remove Gcc_backend
gcc/rust/ChangeLog:
* rust-backend.h
(Backend::Backend): New.
(Backend::~Backend): Remove.
(class Gcc_backend): Remove.
* rust-gcc.cc
(Gcc_backend::Gcc_backend): Rename to ...
(Backend::Backend): ... here.
(rust_get_backend): Construct Backend instead of Gcc_backend.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diff:
---
gcc/rust/rust-backend.h | 8 +-------
gcc/rust/rust-gcc.cc | 4 ++--
2 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h
index ceb5f9f045e..1e2f7c15536 100644
--- a/gcc/rust/rust-backend.h
+++ b/gcc/rust/rust-backend.h
@@ -43,7 +43,7 @@ class Bvariable;
class Backend
{
public:
- virtual ~Backend () {}
+ Backend ();
// Name/type/location. Used for function parameters, struct fields,
// interface methods.
@@ -466,10 +466,4 @@ protected:
tree convert_tree (tree, tree, location_t);
};
-class Gcc_backend : public Backend
-{
-public:
- Gcc_backend ();
-};
-
#endif // RUST_BACKEND_H
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index 3de08873550..083add4bcae 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -99,7 +99,7 @@ get_identifier_from_string (const std::string &str)
// Define the built-in functions that are exposed to GCCRust.
-Gcc_backend::Gcc_backend ()
+Backend::Backend ()
{
/* We need to define the fetch_and_add functions, since we use them
for ++ and --. */
@@ -2474,5 +2474,5 @@ Backend::write_global_definitions (
Backend *
rust_get_backend ()
{
- return new Gcc_backend ();
+ return new Backend ();
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-01-16 18:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-16 18:12 [gcc r14-8000] gccrs: Remove Gcc_backend Arthur Cohen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).