[lld] r357316 - Fix build following r357308 : Ensure only live thunks are considered when creating import modules
Alexandre Ganea via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 29 14:24:19 PDT 2019
Author: aganea
Date: Fri Mar 29 14:24:19 2019
New Revision: 357316
URL: http://llvm.org/viewvc/llvm-project?rev=357316&view=rev
Log:
Fix build following r357308 : Ensure only live thunks are considered when creating import modules
Modified:
lld/trunk/COFF/PDB.cpp
Modified: lld/trunk/COFF/PDB.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/COFF/PDB.cpp?rev=357316&r1=357315&r2=357316&view=diff
==============================================================================
--- lld/trunk/COFF/PDB.cpp (original)
+++ lld/trunk/COFF/PDB.cpp Fri Mar 29 14:24:19 2019
@@ -1583,6 +1583,9 @@ void PDBLinker::addImportFilesToPDB(Arra
if (!File->ThunkSym)
continue;
+ if (!File->ThunkLive)
+ continue;
+
std::string DLL = StringRef(File->DLLName).lower();
llvm::pdb::DbiModuleDescriptorBuilder *&Mod = DllToModuleDbi[DLL];
if (!Mod) {
More information about the llvm-commits
mailing list