aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-09-04 14:09:10 -0400
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:04:35 +0100
commit1f09a4fedca20c0b9068d4c466b360b449af5d56 (patch)
tree03d40aebb112c2619df8af0739dbf0d221e7a255 /gcc/rust/rust-gcc.cc
parent1501eed45018df1365c7d2a06772ca82dca1b8fe (diff)
downloadgcc-1f09a4fedca20c0b9068d4c466b360b449af5d56.zip
gcc-1f09a4fedca20c0b9068d4c466b360b449af5d56.tar.gz
gcc-1f09a4fedca20c0b9068d4c466b360b449af5d56.tar.bz2
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>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r--gcc/rust/rust-gcc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index 3de0887..083add4 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 ();
}