aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-gcc.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r--gcc/rust/rust-gcc.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index ef7bd9c..3ff774b 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -99,7 +99,8 @@ get_identifier_from_string (const std::string &str)
// Define the built-in functions that are exposed to GCCRust.
-Backend::Backend ()
+void
+Backend::init ()
{
/* We need to define the fetch_and_add functions, since we use them
for ++ and --. */
@@ -2468,11 +2469,3 @@ Backend::write_global_definitions (
delete[] defs;
}
-
-// Return the backend generator.
-
-Backend *
-rust_get_backend ()
-{
- return new Backend ();
-}