summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LTO.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-10-10 23:12:14 +0000
committerDavide Italiano <davide@freebsd.org>2016-10-10 23:12:14 +0000
commitb6e6e4a0744320f1b996ae3c3e7fe593db8e0c97 (patch)
tree28460c74d9bf1b88eb51291c928e2f8b7aa2e45c /lld/ELF/LTO.cpp
parentc6350bc6977b927233daa4f394b3f467ad78d018 (diff)
downloadbcm5719-llvm-b6e6e4a0744320f1b996ae3c3e7fe593db8e0c97.tar.gz
bcm5719-llvm-b6e6e4a0744320f1b996ae3c3e7fe593db8e0c97.zip
[LTO] Split the options for ThinLTO jobs and Regular LTO partitions
Differential Revision: https://reviews.llvm.org/D25452 llvm-svn: 283817
Diffstat (limited to 'lld/ELF/LTO.cpp')
-rw-r--r--lld/ELF/LTO.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp
index ede80c24653..9ddf223d0d5 100644
--- a/lld/ELF/LTO.cpp
+++ b/lld/ELF/LTO.cpp
@@ -68,9 +68,10 @@ static std::unique_ptr<lto::LTO> createLTO() {
/*UseInputModulePath*/ true));
lto::ThinBackend Backend;
- if (Config->LtoJobs)
- Backend = lto::createInProcessThinBackend(Config->LtoJobs);
- return llvm::make_unique<lto::LTO>(std::move(Conf), Backend, Config->LtoJobs);
+ if (Config->ThinLtoJobs != -1u)
+ Backend = lto::createInProcessThinBackend(Config->ThinLtoJobs);
+ return llvm::make_unique<lto::LTO>(std::move(Conf), Backend,
+ Config->LtoPartitions);
}
BitcodeCompiler::BitcodeCompiler() : LtoObj(createLTO()) {}
OpenPOWER on IntegriCloud