diff options
| author | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-06 19:02:48 +0200 |
|---|---|---|
| committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-07-09 21:55:29 +0200 |
| commit | 04304fcd16e40c936dc5ba71c9ac3c445597f8bb (patch) | |
| tree | c624aafe6bf567e8542244ee15fabd091b19dde0 | |
| parent | 9210359b18185f46af9c0f30cc3d2678394930ef (diff) | |
| download | rust-04304fcd16e40c936dc5ba71c9ac3c445597f8bb.tar.gz rust-04304fcd16e40c936dc5ba71c9ac3c445597f8bb.zip | |
Pass GUIDPreservedSymbols to thinLTOResolvePrevailingInIndex()
| -rw-r--r-- | src/rustllvm/PassWrapper.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rustllvm/PassWrapper.cpp b/src/rustllvm/PassWrapper.cpp index 0ebef82d376..cea88f14dcc 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); |
