summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
diff options
context:
space:
mode:
authorKrasimir Georgiev <krasimir@google.com>2024-09-18 13:23:42 +0000
committerKrasimir Georgiev <krasimir@google.com>2024-09-18 13:23:42 +0000
commit3a352884f8112be3554e505e9d98819fd2be925a (patch)
tree746ba20a70b77ff5abcb918d6a0126e8030aa26e /compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
parent82d17a4db3a010caa947d49245de63a7ac14accf (diff)
downloadrust-3a352884f8112be3554e505e9d98819fd2be925a.tar.gz
rust-3a352884f8112be3554e505e9d98819fd2be925a.zip
llvm-wrapper: adapt for LLVM API changes, second try
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp')
-rw-r--r--compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
index 4a4ba165b57..7ceb50f2a9e 100644
--- a/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
+++ b/compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -1211,7 +1211,11 @@ struct LLVMRustThinLTOData {
   // Not 100% sure what these are, but they impact what's internalized and
   // what's inlined across modules, I believe.
 #if LLVM_VERSION_GE(18, 0)
+#if LLVM_VERSION_GE(20, 0)
+  FunctionImporter::ImportListsTy ImportLists;
+#else
   DenseMap<StringRef, FunctionImporter::ImportMapTy> ImportLists;
+#endif
   DenseMap<StringRef, FunctionImporter::ExportSetTy> ExportLists;
   DenseMap<StringRef, GVSummaryMapTy> ModuleToDefinedGVSummaries;
 #else