about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-02-13 06:27:39 +0100
committerGitHub <noreply@github.com>2024-02-13 06:27:39 +0100
commitfa3ec020571ffb0750c17c25db232e61fcc636e8 (patch)
tree7f6e21df3d38a37a56f8960ea7a9cb38d4a9ad51 /compiler/rustc_llvm/llvm-wrapper
parentd95f0000fbc72946f056b594c51238c7f2abbac0 (diff)
parent718b304d82bae9ba6db0872b851c7c0e5032b4c0 (diff)
downloadrust-fa3ec020571ffb0750c17c25db232e61fcc636e8.tar.gz
rust-fa3ec020571ffb0750c17c25db232e61fcc636e8.zip
Rollup merge of #120974 - zmodem:exportas, r=durin42
llvm-wrapper: adapt for LLVM API change: Add support for EXPORTAS name types

Adapt for llvm/llvm-project@8f23464.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
index a2dfebec594..b45706fd1e5 100644
--- a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
@@ -1801,6 +1801,9 @@ extern "C" LLVMRustResult LLVMRustWriteImportLibrary(
       std::string{},    // ExtName
       std::string{},    // SymbolName
       std::string{},    // AliasTarget
+#if LLVM_VERSION_GE(19, 0)
+      std::string{},    // ExportAs
+#endif
       ordinal,          // Ordinal
       ordinal_present,  // Noname
       false,            // Data