[gcc r14-7993] gccrs: Remove Backend::write_export_data

Arthur Cohen cohenarthur@gcc.gnu.org
Tue Jan 16 18:11:47 GMT 2024


https://gcc.gnu.org/g:346ccc0f0a8e2b916e33ac69f7f14bf5b7c1c8ad

commit r14-7993-g346ccc0f0a8e2b916e33ac69f7f14bf5b7c1c8ad
Author: Owen Avery <powerboat9.gamer@gmail.com>
Date:   Mon Sep 4 14:23:10 2023 -0400

    gccrs: Remove Backend::write_export_data
    
    gcc/rust/ChangeLog:
    
            * rust-backend.h
            (Backend::write_export_data): Remove.
            * rust-gcc.cc
            (Backend::write_export_data): Remove.

Diff:
---
 gcc/rust/rust-backend.h | 4 ----
 gcc/rust/rust-gcc.cc    | 6 ------
 2 files changed, 10 deletions(-)

diff --git a/gcc/rust/rust-backend.h b/gcc/rust/rust-backend.h
index 2c04f7aff81..ceb5f9f045e 100644
--- a/gcc/rust/rust-backend.h
+++ b/gcc/rust/rust-backend.h
@@ -456,10 +456,6 @@ public:
 			    const std::vector<tree> &function_decls,
 			    const std::vector<Bvariable *> &variable_decls);
 
-  // Write SIZE bytes of export data from BYTES to the proper
-  // section in the output object file.
-  void write_export_data (const char *bytes, unsigned int size);
-
 protected:
   tree fill_in_fields (tree, const std::vector<typed_identifier> &);
 
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc
index aae536c52b1..3de08873550 100644
--- a/gcc/rust/rust-gcc.cc
+++ b/gcc/rust/rust-gcc.cc
@@ -2469,12 +2469,6 @@ Backend::write_global_definitions (
   delete[] defs;
 }
 
-void
-Backend::write_export_data (const char *bytes, unsigned int size)
-{
-  rust_write_export_data (bytes, size);
-}
-
 // Return the backend generator.
 
 Backend *


More information about the Gcc-cvs mailing list