mirror of
https://codeberg.org/kiss-community/repo
synced 2024-12-22 15:20:06 -07:00
27 lines
1.1 KiB
Diff
27 lines
1.1 KiB
Diff
From 04304fcd16e40c936dc5ba71c9ac3c445597f8bb Mon Sep 17 00:00:00 2001
|
|
From: Nikita Popov <nikita.ppv@gmail.com>
|
|
Date: Sat, 6 Jul 2019 19:02:48 +0200
|
|
Subject: [PATCH] Pass GUIDPreservedSymbols to
|
|
thinLTOResolvePrevailingInIndex()
|
|
|
|
---
|
|
src/rustllvm/PassWrapper.cpp | 5 ++++-
|
|
1 file changed, 4 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp
|
|
index 0ebef82d3768..cea88f14dcc6 100644
|
|
--- a/src/rustllvm/PassWrapper.cpp
|
|
+++ b/src/rustllvm/PassWrapper.cpp
|
|
@@ -913,7 +913,10 @@ LLVMRustCreateThinLTOData(LLVMRustThinLTOModule *modules,
|
|
GlobalValue::LinkageTypes NewLinkage) {
|
|
ResolvedODR[ModuleIdentifier][GUID] = NewLinkage;
|
|
};
|
|
-#if LLVM_VERSION_GE(8, 0)
|
|
+#if LLVM_VERSION_GE(9, 0)
|
|
+ thinLTOResolvePrevailingInIndex(Ret->Index, isPrevailing, recordNewLinkage,
|
|
+ Ret->GUIDPreservedSymbols);
|
|
+#elif LLVM_VERSION_GE(8, 0)
|
|
thinLTOResolvePrevailingInIndex(Ret->Index, isPrevailing, recordNewLinkage);
|
|
#else
|
|
thinLTOResolveWeakForLinkerInIndex(Ret->Index, isPrevailing, recordNewLinkage);
|