about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbjorn3 <17426603+bjorn3@users.noreply.github.com>2024-07-25 20:08:40 +0000
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2024-08-12 15:17:57 +0200
commit50b374627fc319d26ec96d5e477685614f6575a2 (patch)
tree7fca130a4cae0dbc2aa98ec5f105e328a3e52f04
parentc57eb5581fe407f364df5812416190b241e8a8bb (diff)
downloadrust-50b374627fc319d26ec96d5e477685614f6575a2.tar.gz
rust-50b374627fc319d26ec96d5e477685614f6575a2.zip
Move computation of decorated names out of the create_dll_import_lib method
-rw-r--r--src/archive.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/archive.rs b/src/archive.rs
index 4a54d26daf7..0cee05f1cea 100644
--- a/src/archive.rs
+++ b/src/archive.rs
@@ -3,7 +3,6 @@ use std::path::Path;
 use rustc_codegen_ssa::back::archive::{
     ArArchiveBuilder, ArchiveBuilder, ArchiveBuilderBuilder, DEFAULT_OBJECT_READER,
 };
-use rustc_session::cstore::DllImport;
 use rustc_session::Session;
 
 pub(crate) struct ArArchiveBuilderBuilder;
@@ -17,7 +16,7 @@ impl ArchiveBuilderBuilder for ArArchiveBuilderBuilder {
         &self,
         _sess: &Session,
         _lib_name: &str,
-        _dll_imports: &[DllImport],
+        _import_name_and_ordinal_vector: Vec<(String, Option<u16>)>,
         _output_path: &Path,
     ) {
         unimplemented!("creating dll imports is not yet supported");