diff options
author | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2019-03-29 21:24:19 +0000 |
---|---|---|
committer | Alexandre Ganea <alexandre.ganea@ubisoft.com> | 2019-03-29 21:24:19 +0000 |
commit | b13f064b5d20ef457ddb69ee7022e27666fd6189 (patch) | |
tree | ba2ded64c6a9600df45be02ea87c6ba2093befbe | |
parent | e589067e618ffeaa59c3d1a6214ce536141a11d5 (diff) | |
download | bcm5719-llvm-b13f064b5d20ef457ddb69ee7022e27666fd6189.tar.gz bcm5719-llvm-b13f064b5d20ef457ddb69ee7022e27666fd6189.zip |
Fix build following r357308 : Ensure only live thunks are considered when creating import modules
llvm-svn: 357316
-rw-r--r-- | lld/COFF/PDB.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lld/COFF/PDB.cpp b/lld/COFF/PDB.cpp index b69eac8aac6..c27212d7514 100644 --- a/lld/COFF/PDB.cpp +++ b/lld/COFF/PDB.cpp @@ -1583,6 +1583,9 @@ void PDBLinker::addImportFilesToPDB(ArrayRef<OutputSection *> OutputSections) { if (!File->ThunkSym) continue; + if (!File->ThunkLive) + continue; + std::string DLL = StringRef(File->DLLName).lower(); llvm::pdb::DbiModuleDescriptorBuilder *&Mod = DllToModuleDbi[DLL]; if (!Mod) { |