summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-lto/llvm-lto.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-lto/llvm-lto.cpp')
-rw-r--r--llvm/tools/llvm-lto/llvm-lto.cpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/llvm/tools/llvm-lto/llvm-lto.cpp b/llvm/tools/llvm-lto/llvm-lto.cpp
index 395988c0ebf..abede09a1e5 100644
--- a/llvm/tools/llvm-lto/llvm-lto.cpp
+++ b/llvm/tools/llvm-lto/llvm-lto.cpp
@@ -66,7 +66,6 @@ static cl::opt<bool>
enum ThinLTOModes {
THINLINK,
- THINDISTRIBUTE,
THINPROMOTE,
THINIMPORT,
THININTERNALIZE,
@@ -81,8 +80,6 @@ cl::opt<ThinLTOModes> ThinLTOMode(
clEnumValN(
THINLINK, "thinlink",
"ThinLink: produces the index by linking only the summaries."),
- clEnumValN(THINDISTRIBUTE, "distributedindexes",
- "Produces individual indexes for distributed backends."),
clEnumValN(THINPROMOTE, "promote",
"Perform pre-import promotion (requires -thinlto-index)."),
clEnumValN(THINIMPORT, "import", "Perform both promotion and "
@@ -357,8 +354,6 @@ public:
switch (ThinLTOMode) {
case THINLINK:
return thinLink();
- case THINDISTRIBUTE:
- return distributedIndexes();
case THINPROMOTE:
return promote();
case THINIMPORT:
@@ -401,36 +396,6 @@ private:
return;
}
- /// Load the combined index from disk, then compute and generate
- /// individual index files suitable for ThinLTO distributed backend builds
- /// on the files mentioned on the command line (these must match the index
- /// content).
- void distributedIndexes() {
- if (InputFilenames.size() != 1 && !OutputFilename.empty())
- report_fatal_error("Can't handle a single output filename and multiple "
- "input files, do not provide an output filename and "
- "the output files will be suffixed from the input "
- "ones.");
-
- auto Index = loadCombinedIndex();
- for (auto &Filename : InputFilenames) {
- // Build a map of module to the GUIDs and summary objects that should
- // be written to its index.
- std::map<std::string, GVSummaryMapTy> ModuleToSummariesForIndex;
- ThinLTOCodeGenerator::gatherImportedSummariesForModule(
- Filename, *Index, ModuleToSummariesForIndex);
-
- std::string OutputName = OutputFilename;
- if (OutputName.empty()) {
- OutputName = Filename + ".thinlto.bc";
- }
- std::error_code EC;
- raw_fd_ostream OS(OutputName, EC, sys::fs::OpenFlags::F_None);
- error(EC, "error opening the file '" + OutputName + "'");
- WriteIndexToFile(*Index, OS, &ModuleToSummariesForIndex);
- }
- }
-
/// Load the combined index from disk, then load every file referenced by
/// the index and add them to the generator, finally perform the promotion
/// on the files mentioned on the command line (these must match the index
OpenPOWER on IntegriCloud