Changeset View
Changeset View
Standalone View
Standalone View
lld/ELF/LTO.cpp
Show First 20 Lines • Show All 105 Lines • ▼ Show 20 Lines | static lto::Config createConfig() { | ||||
c.RemarksWithHotness = config->optRemarksWithHotness; | c.RemarksWithHotness = config->optRemarksWithHotness; | ||||
c.RemarksFormat = config->optRemarksFormat; | c.RemarksFormat = config->optRemarksFormat; | ||||
c.SampleProfile = config->ltoSampleProfile; | c.SampleProfile = config->ltoSampleProfile; | ||||
c.UseNewPM = config->ltoNewPassManager; | c.UseNewPM = config->ltoNewPassManager; | ||||
c.DebugPassManager = config->ltoDebugPassManager; | c.DebugPassManager = config->ltoDebugPassManager; | ||||
c.DwoDir = config->dwoDir; | c.DwoDir = config->dwoDir; | ||||
c.HasWholeProgramVisibility = config->ltoWholeProgramVisibility; | |||||
c.CSIRProfile = config->ltoCSProfileFile; | c.CSIRProfile = config->ltoCSProfileFile; | ||||
c.RunCSIRInstr = config->ltoCSProfileGenerate; | c.RunCSIRInstr = config->ltoCSProfileGenerate; | ||||
if (config->emitLLVM) { | if (config->emitLLVM) { | ||||
c.PostInternalizeModuleHook = [](size_t task, const Module &m) { | c.PostInternalizeModuleHook = [](size_t task, const Module &m) { | ||||
if (std::unique_ptr<raw_fd_ostream> os = openFile(config->outputFile)) | if (std::unique_ptr<raw_fd_ostream> os = openFile(config->outputFile)) | ||||
WriteBitcodeToFile(m, *os, false); | WriteBitcodeToFile(m, *os, false); | ||||
return false; | return false; | ||||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |