@@ -1488,23 +1488,23 @@ SmallVector<const char *> LTO::getRuntimeLibcallSymbols(const Triple &TT) {
14881488}
14891489
14901490Error ThinBackendProc::emitFiles (
1491- const FunctionImporter::ImportMapTy &ImportList, unsigned Task, llvm::StringRef ModulePath,
1492- const std::string &NewModulePath) const {
1491+ const FunctionImporter::ImportMapTy &ImportList, unsigned Task,
1492+ llvm::StringRef ModulePath, const std::string &NewModulePath) const {
14931493 return emitFiles (ImportList, Task, ModulePath, NewModulePath,
14941494 NewModulePath + " .thinlto.bc" ,
14951495 /* ImportsFiles=*/ std::nullopt , nullptr , nullptr , nullptr ,
14961496 nullptr );
14971497}
14981498
14991499Error ThinBackendProc::emitFiles (
1500- const FunctionImporter::ImportMapTy &ImportList, unsigned Task, llvm::StringRef ModulePath,
1501- const std::string &NewModulePath, StringRef SummaryPath,
1500+ const FunctionImporter::ImportMapTy &ImportList, unsigned Task,
1501+ llvm::StringRef ModulePath, const std::string &NewModulePath,
1502+ StringRef SummaryPath,
15021503 std::optional<std::reference_wrapper<ImportsFilesContainer>> ImportsFiles,
15031504 const FunctionImporter::ExportSetTy *ExportList,
15041505 const std::map<GlobalValue::GUID, GlobalValue::LinkageTypes> *ResolvedODR,
15051506 const DenseSet<GlobalValue::GUID> *CfiFunctionDefs,
1506- const DenseSet<GlobalValue::GUID> *CfiFunctionDecls)
1507- const {
1507+ const DenseSet<GlobalValue::GUID> *CfiFunctionDecls) const {
15081508 ModuleToSummariesForIndexTy ModuleToSummariesForIndex;
15091509 GVSummaryPtrSet DeclarationSummaries;
15101510
@@ -1975,9 +1975,9 @@ class WriteIndexesThinBackend : public ThinBackendProc {
19751975 std::string NewModulePath =
19761976 getThinLTOOutputFile (ModulePath, OldPrefix, NewPrefix);
19771977 auto E = emitFiles (ImportList, Task, ModulePath, NewModulePath,
1978- NewModulePath + " .thinlto.bc" ,
1979- /* ImportsFiles=*/ std::nullopt , &ExportList,
1980- &ResolvedODR, &CfiFunctionDefs, &CfiFunctionDecls);
1978+ NewModulePath + " .thinlto.bc" ,
1979+ /* ImportsFiles=*/ std::nullopt , &ExportList,
1980+ &ResolvedODR, &CfiFunctionDefs, &CfiFunctionDecls);
19811981 if (E) {
19821982 std::unique_lock<std::mutex> L (ErrMu);
19831983 if (Err)
0 commit comments