Skip to content

Commit 7b135aa

Browse files
committed
Switch the order of SummaryPath and NewModulePath args.
1 parent 33dc42c commit 7b135aa

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

llvm/include/llvm/LTO/LTO.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,8 @@ class ThinBackendProc {
249249
// Write sharded indices to SummaryPath, (optionally) imports to disk, and
250250
// (optionally) record imports in ImportsFiles.
251251
Error emitFiles(const FunctionImporter::ImportMapTy &ImportList,
252-
StringRef ModulePath, StringRef SummaryPath,
253-
const std::string &NewModulePath,
252+
StringRef ModulePath, const std::string &NewModulePath,
253+
StringRef SummaryPath,
254254
std::optional<std::reference_wrapper<ImportsFilesContainer>>
255255
ImportsFiles) const;
256256
};

llvm/lib/LTO/LTO.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,14 +1393,14 @@ SmallVector<const char *> LTO::getRuntimeLibcallSymbols(const Triple &TT) {
13931393
Error ThinBackendProc::emitFiles(
13941394
const FunctionImporter::ImportMapTy &ImportList, llvm::StringRef ModulePath,
13951395
const std::string &NewModulePath) const {
1396-
return emitFiles(ImportList, ModulePath, NewModulePath + ".thinlto.bc",
1397-
NewModulePath,
1396+
return emitFiles(ImportList, ModulePath, NewModulePath,
1397+
NewModulePath + ".thinlto.bc",
13981398
/*ImportsFiles=*/std::nullopt);
13991399
}
14001400

14011401
Error ThinBackendProc::emitFiles(
14021402
const FunctionImporter::ImportMapTy &ImportList, llvm::StringRef ModulePath,
1403-
StringRef SummaryPath, const std::string &NewModulePath,
1403+
const std::string &NewModulePath, StringRef SummaryPath,
14041404
std::optional<std::reference_wrapper<ImportsFilesContainer>> ImportsFiles)
14051405
const {
14061406
ModuleToSummariesForIndexTy ModuleToSummariesForIndex;
@@ -2281,8 +2281,8 @@ class OutOfProcessThinBackend : public CGThinBackend {
22812281
assert(ModuleToDefinedGVSummaries.count(ModulePath));
22822282
BackendThreadPool.async(
22832283
[=](Job &J, const FunctionImporter::ImportMapTy &ImportList) {
2284-
if (auto E = emitFiles(ImportList, J.ModuleID, J.SummaryIndexPath,
2285-
J.ModuleID.str(), J.ImportsFiles)) {
2284+
if (auto E = emitFiles(ImportList, J.ModuleID, J.ModuleID.str(),
2285+
J.SummaryIndexPath, J.ImportsFiles)) {
22862286
std::unique_lock<std::mutex> L(ErrMu);
22872287
if (Err)
22882288
Err = joinErrors(std::move(*Err), std::move(E));

0 commit comments

Comments
 (0)