From: Alexandre Ganea Date: Fri, 29 Mar 2019 21:24:19 +0000 (+0000) Subject: Fix build following r357308 : Ensure only live thunks are considered when creating... X-Git-Tag: llvmorg-10-init~8843 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b13f064b5d20ef457ddb69ee7022e27666fd6189;p=platform%2Fupstream%2Fllvm.git Fix build following r357308 : Ensure only live thunks are considered when creating import modules llvm-svn: 357316 --- diff --git a/lld/COFF/PDB.cpp b/lld/COFF/PDB.cpp index b69eac8..c27212d 100644 --- a/lld/COFF/PDB.cpp +++ b/lld/COFF/PDB.cpp @@ -1583,6 +1583,9 @@ void PDBLinker::addImportFilesToPDB(ArrayRef OutputSections) { if (!File->ThunkSym) continue; + if (!File->ThunkLive) + continue; + std::string DLL = StringRef(File->DLLName).lower(); llvm::pdb::DbiModuleDescriptorBuilder *&Mod = DllToModuleDbi[DLL]; if (!Mod) {