about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@chromium.org>2024-02-12 15:23:42 +0100
committerHans Wennborg <hans@chromium.org>2024-02-12 15:23:50 +0100
commit718b304d82bae9ba6db0872b851c7c0e5032b4c0 (patch)
tree42290eccdfafbbd50f2c945b0d818fa8e2bd8089 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentb17491c8f6d555386104dfd82004c01bfef09c95 (diff)
downloadrust-718b304d82bae9ba6db0872b851c7c0e5032b4c0.tar.gz
rust-718b304d82bae9ba6db0872b851c7c0e5032b4c0.zip
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/RustWrapper.cpp')
-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