From 1df2338bb62870b7afbb900813570d68d2690a1f Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Thu, 5 May 2016 18:31:00 +0000 Subject: Revert "[ThinLTO] Emit individual index files for distributed backends" MemorySanitizer: use-of-uninitialized-value in lib/Bitcode/Writer/BitcodeWriter.cpp:364:70 http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/12544/steps/check-llvm%20msan/logs/stdio This reverts commit 0c4a898ea550699d1b2f4fe3767251c8f9a48d52. llvm-svn: 268660 --- llvm/lib/LTO/ThinLTOCodeGenerator.cpp | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'llvm/lib/LTO/ThinLTOCodeGenerator.cpp') diff --git a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp index 68d7a71..70da5b3 100644 --- a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp +++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp @@ -720,29 +720,6 @@ void ThinLTOCodeGenerator::crossModuleImport(Module &TheModule, } /** - * Compute the list of summaries needed for importing into module. - */ -void ThinLTOCodeGenerator::gatherImportedSummariesForModule( - StringRef ModulePath, ModuleSummaryIndex &Index, - std::map &ModuleToSummariesForIndex) { - auto ModuleCount = Index.modulePaths().size(); - - // Collect for each module the list of function it defines (GUID -> Summary). - StringMap ModuleToDefinedGVSummaries(ModuleCount); - Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries); - - // Generate import/export list - StringMap ImportLists(ModuleCount); - StringMap ExportLists(ModuleCount); - ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries, ImportLists, - ExportLists); - - llvm::gatherImportedSummariesForModule(ModulePath, ModuleToDefinedGVSummaries, - ImportLists, - ModuleToSummariesForIndex); -} - -/** * Perform internalization. */ void ThinLTOCodeGenerator::internalize(Module &TheModule, -- cgit v1.1