summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO/LTO.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-11-19 20:44:26 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-11-19 20:44:26 +0000
commitffd3715d1609c8504b23e252bb89d8a61b1c90ba (patch)
treed659e7d4de614cf0784317ccc91cc5bc5e2e179f /llvm/lib/LTO/LTO.cpp
parenta14e0cb852a7a826a98925146484ca30ed60f222 (diff)
downloadbcm5719-llvm-ffd3715d1609c8504b23e252bb89d8a61b1c90ba.tar.gz
bcm5719-llvm-ffd3715d1609c8504b23e252bb89d8a61b1c90ba.zip
Give some helper classes/functions internal linkage. NFC.
llvm-svn: 287462
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r--llvm/lib/LTO/LTO.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp
index f867582454d..b5339cd61df 100644
--- a/llvm/lib/LTO/LTO.cpp
+++ b/llvm/lib/LTO/LTO.cpp
@@ -530,6 +530,7 @@ public:
virtual Error wait() = 0;
};
+namespace {
class InProcessThinBackend : public ThinBackendProc {
ThreadPool BackendThreadPool;
AddStreamFn AddStream;
@@ -629,6 +630,7 @@ public:
return Error::success();
}
};
+} // end anonymous namespace
ThinBackend lto::createInProcessThinBackend(unsigned ParallelismLevel) {
return [=](Config &Conf, ModuleSummaryIndex &CombinedIndex,
@@ -660,6 +662,7 @@ std::string lto::getThinLTOOutputFile(const std::string &Path,
return NewPath.str();
}
+namespace {
class WriteIndexesThinBackend : public ThinBackendProc {
std::string OldPrefix, NewPrefix;
bool ShouldEmitImportsFiles;
@@ -717,6 +720,7 @@ public:
Error wait() override { return Error::success(); }
};
+} // end anonymous namespace
ThinBackend lto::createWriteIndexesThinBackend(std::string OldPrefix,
std::string NewPrefix,
OpenPOWER on IntegriCloud