Changeset View
Changeset View
Standalone View
Standalone View
lld/ELF/LTO.cpp
Show First 20 Lines • Show All 140 Lines • ▼ Show 20 Lines | static lto::Config createConfig() { | ||||
c.RemarksWithHotness = config->optRemarksWithHotness; | c.RemarksWithHotness = config->optRemarksWithHotness; | ||||
c.RemarksHotnessThreshold = config->optRemarksHotnessThreshold; | c.RemarksHotnessThreshold = config->optRemarksHotnessThreshold; | ||||
c.RemarksFormat = std::string(config->optRemarksFormat); | c.RemarksFormat = std::string(config->optRemarksFormat); | ||||
// Set up output file to emit statistics. | // Set up output file to emit statistics. | ||||
c.StatsFile = std::string(config->optStatsFilename); | c.StatsFile = std::string(config->optStatsFilename); | ||||
c.SampleProfile = std::string(config->ltoSampleProfile); | c.SampleProfile = std::string(config->ltoSampleProfile); | ||||
for (StringRef pluginFn : config->passPlugins) | |||||
c.PassPlugins.push_back(std::string(pluginFn)); | |||||
c.DebugPassManager = config->ltoDebugPassManager; | c.DebugPassManager = config->ltoDebugPassManager; | ||||
c.DwoDir = std::string(config->dwoDir); | c.DwoDir = std::string(config->dwoDir); | ||||
c.HasWholeProgramVisibility = config->ltoWholeProgramVisibility; | c.HasWholeProgramVisibility = config->ltoWholeProgramVisibility; | ||||
c.AlwaysEmitRegularLTOObj = !config->ltoObjPath.empty(); | c.AlwaysEmitRegularLTOObj = !config->ltoObjPath.empty(); | ||||
for (const llvm::StringRef &name : config->thinLTOModulesToCompile) | for (const llvm::StringRef &name : config->thinLTOModulesToCompile) | ||||
c.ThinLTOModulesToCompile.emplace_back(name); | c.ThinLTOModulesToCompile.emplace_back(name); | ||||
▲ Show 20 Lines • Show All 234 Lines • Show Last 20 Lines |