summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2016-05-05 18:31:00 +0000
committerVitaly Buka <vitalybuka@google.com>2016-05-05 18:31:00 +0000
commit1df2338bb62870b7afbb900813570d68d2690a1f (patch)
treebdc4709c83ae62039729841f567e836ae161207d /llvm/lib/LTO/ThinLTOCodeGenerator.cpp
parent07fa815c651b09f29bb86b3caebdeacf77eb0eab (diff)
downloadbcm5719-llvm-1df2338bb62870b7afbb900813570d68d2690a1f.tar.gz
bcm5719-llvm-1df2338bb62870b7afbb900813570d68d2690a1f.zip
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
Diffstat (limited to 'llvm/lib/LTO/ThinLTOCodeGenerator.cpp')
-rw-r--r--llvm/lib/LTO/ThinLTOCodeGenerator.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
index 68d7a714b6b..70da5b33a58 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<std::string, GVSummaryMapTy> &ModuleToSummariesForIndex) {
- auto ModuleCount = Index.modulePaths().size();
-
- // Collect for each module the list of function it defines (GUID -> Summary).
- StringMap<GVSummaryMapTy> ModuleToDefinedGVSummaries(ModuleCount);
- Index.collectDefinedGVSummariesPerModule(ModuleToDefinedGVSummaries);
-
- // Generate import/export list
- StringMap<FunctionImporter::ImportMapTy> ImportLists(ModuleCount);
- StringMap<FunctionImporter::ExportSetTy> ExportLists(ModuleCount);
- ComputeCrossModuleImport(Index, ModuleToDefinedGVSummaries, ImportLists,
- ExportLists);
-
- llvm::gatherImportedSummariesForModule(ModulePath, ModuleToDefinedGVSummaries,
- ImportLists,
- ModuleToSummariesForIndex);
-}
-
-/**
* Perform internalization.
*/
void ThinLTOCodeGenerator::internalize(Module &TheModule,
OpenPOWER on IntegriCloud