summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LTO.cpp
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2016-11-26 05:37:04 +0000
committerDavide Italiano <davide@freebsd.org>2016-11-26 05:37:04 +0000
commit3bfa081aa945b96e47c4118a60780c2b14fc893d (patch)
tree2d59e7cc12bef30a44f006ef40e46ab7ef87dfd5 /lld/ELF/LTO.cpp
parent696bd63550b3c5651dbcafbf504d859d40178dcf (diff)
downloadbcm5719-llvm-3bfa081aa945b96e47c4118a60780c2b14fc893d.tar.gz
bcm5719-llvm-3bfa081aa945b96e47c4118a60780c2b14fc893d.zip
[ELF] Be compliant with LLVM and rename Lto into LTO. NFCI.
llvm-svn: 287967
Diffstat (limited to 'lld/ELF/LTO.cpp')
-rw-r--r--lld/ELF/LTO.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/lld/ELF/LTO.cpp b/lld/ELF/LTO.cpp
index 2621358a8b6..8d4ad913947 100644
--- a/lld/ELF/LTO.cpp
+++ b/lld/ELF/LTO.cpp
@@ -75,24 +75,24 @@ static std::unique_ptr<lto::LTO> createLTO() {
Conf.RelocModel = Config->Pic ? Reloc::PIC_ : Reloc::Static;
Conf.DisableVerify = Config->DisableVerify;
Conf.DiagHandler = diagnosticHandler;
- Conf.OptLevel = Config->LtoO;
+ Conf.OptLevel = Config->LTOO;
// Set up a custom pipeline if we've been asked to.
- Conf.OptPipeline = Config->LtoNewPmPasses;
- Conf.AAPipeline = Config->LtoAAPipeline;
+ Conf.OptPipeline = Config->LTONewPmPasses;
+ Conf.AAPipeline = Config->LTOAAPipeline;
if (Config->SaveTemps)
checkError(Conf.addSaveTemps(std::string(Config->OutputFile) + ".",
/*UseInputModulePath*/ true));
lto::ThinBackend Backend;
- if (Config->ThinLtoJobs != -1u)
- Backend = lto::createInProcessThinBackend(Config->ThinLtoJobs);
+ if (Config->ThinLTOJobs != -1u)
+ Backend = lto::createInProcessThinBackend(Config->ThinLTOJobs);
return llvm::make_unique<lto::LTO>(std::move(Conf), Backend,
- Config->LtoPartitions);
+ Config->LTOPartitions);
}
-BitcodeCompiler::BitcodeCompiler() : LtoObj(createLTO()) {}
+BitcodeCompiler::BitcodeCompiler() : LTOObj(createLTO()) {}
BitcodeCompiler::~BitcodeCompiler() = default;
@@ -128,17 +128,17 @@ void BitcodeCompiler::add(BitcodeFile &F) {
if (R.Prevailing)
undefine(Sym);
}
- checkError(LtoObj->add(std::move(F.Obj), Resols));
+ checkError(LTOObj->add(std::move(F.Obj), Resols));
}
// Merge all the bitcode files we have seen, codegen the result
// and return the resulting ObjectFile(s).
std::vector<InputFile *> BitcodeCompiler::compile() {
std::vector<InputFile *> Ret;
- unsigned MaxTasks = LtoObj->getMaxTasks();
+ unsigned MaxTasks = LTOObj->getMaxTasks();
Buff.resize(MaxTasks);
- checkError(LtoObj->run([&](size_t Task) {
+ checkError(LTOObj->run([&](size_t Task) {
return llvm::make_unique<lto::NativeObjectStream>(
llvm::make_unique<raw_svector_ostream>(Buff[Task]));
}));
OpenPOWER on IntegriCloud