about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2024-07-16 16:15:13 -0500
committerGitHub <noreply@github.com>2024-07-16 16:15:13 -0500
commit63f239c89f661dc1e1157ab730e71197e55a12f0 (patch)
tree7b2cacb34ecee93b12e2bb1c23a84cbe1c988b25 /compiler/rustc_codegen_llvm/src/llvm/ffi.rs
parent16b569057e4d1591b4bee05f10df34000308dedc (diff)
parentcd3f2f68c042e2957fff85ca89ba10cb0f2f12b3 (diff)
downloadrust-63f239c89f661dc1e1157ab730e71197e55a12f0.tar.gz
rust-63f239c89f661dc1e1157ab730e71197e55a12f0.zip
Rollup merge of #124033 - bjorn3:ar_archive_writer_0_3_0, r=davidtwco
Sync ar_archive_writer to LLVM 18.1.3

From LLVM 15.0.0-rc3. This adds support for COFF archives containing Arm64EC object files and has various fixes for AIX big archive files.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm/ffi.rs')
-rw-r--r--compiler/rustc_codegen_llvm/src/llvm/ffi.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
index e0bf6110cdf..ae46200d3f5 100644
--- a/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
+++ b/compiler/rustc_codegen_llvm/src/llvm/ffi.rs
@@ -2440,4 +2440,8 @@ extern "C" {
         callback: GetSymbolsCallback,
         error_callback: GetSymbolsErrorCallback,
     ) -> *mut c_void;
+
+    pub fn LLVMRustIs64BitSymbolicFile(buf_ptr: *const u8, buf_len: usize) -> bool;
+
+    pub fn LLVMRustIsECObject(buf_ptr: *const u8, buf_len: usize) -> bool;
 }