From 718b304d82bae9ba6db0872b851c7c0e5032b4c0 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Mon, 12 Feb 2024 15:23:42 +0100 Subject: [PATCH] llvm-wrapper: adapt for LLVM API change: Add support for EXPORTAS name types Adapt for llvm/llvm-project@8f23464. --- compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp index a2dfebec59441..b45706fd1e5b2 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