@@ -1514,23 +1514,23 @@ SmallVector<StringRef> LTO::getLibFuncSymbols(const Triple &TT,
15141514}
15151515
15161516Error ThinBackendProc::emitFiles (
1517- const FunctionImporter::ImportMapTy &ImportList, unsigned Task, llvm::StringRef ModulePath,
1518- const std::string &NewModulePath) const {
1517+ const FunctionImporter::ImportMapTy &ImportList, unsigned Task,
1518+ llvm::StringRef ModulePath, const std::string &NewModulePath) const {
15191519 return emitFiles (ImportList, Task, ModulePath, NewModulePath,
15201520 NewModulePath + " .thinlto.bc" ,
15211521 /* ImportsFiles=*/ std::nullopt , nullptr , nullptr , nullptr ,
15221522 nullptr );
15231523}
15241524
15251525Error ThinBackendProc::emitFiles (
1526- const FunctionImporter::ImportMapTy &ImportList, unsigned Task, llvm::StringRef ModulePath,
1527- const std::string &NewModulePath, StringRef SummaryPath,
1526+ const FunctionImporter::ImportMapTy &ImportList, unsigned Task,
1527+ llvm::StringRef ModulePath, const std::string &NewModulePath,
1528+ StringRef SummaryPath,
15281529 std::optional<std::reference_wrapper<ImportsFilesContainer>> ImportsFiles,
15291530 const FunctionImporter::ExportSetTy *ExportList,
15301531 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> *ResolvedODR,
15311532 const DenseSet<GlobalValue::GUID> *CfiFunctionDefs,
1532- const DenseSet<GlobalValue::GUID> *CfiFunctionDecls)
1533- const {
1533+ const DenseSet<GlobalValue::GUID> *CfiFunctionDecls) const {
15341534 ModuleToSummariesForIndexTy ModuleToSummariesForIndex;
15351535 GVSummaryPtrSet DeclarationSummaries;
15361536
@@ -2007,9 +2007,9 @@ class WriteIndexesThinBackend : public ThinBackendProc {
20072007 std::string NewModulePath =
20082008 getThinLTOOutputFile (ModulePath, OldPrefix, NewPrefix);
20092009 auto E = emitFiles (ImportList, Task, ModulePath, NewModulePath,
2010- NewModulePath + " .thinlto.bc" ,
2011- /* ImportsFiles=*/ std::nullopt , &ExportList,
2012- &ResolvedODR, &CfiFunctionDefs, &CfiFunctionDecls);
2010+ NewModulePath + " .thinlto.bc" ,
2011+ /* ImportsFiles=*/ std::nullopt , &ExportList,
2012+ &ResolvedODR, &CfiFunctionDefs, &CfiFunctionDecls);
20132013 if (E) {
20142014 std::unique_lock<std::mutex> L (ErrMu);
20152015 if (Err)
0 commit comments