summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-18 13:55:18 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-18 15:52:41 (GMT)
commit5ab002ea11921c4766912cfa7ca98756271f87dc (patch)
treeda2174558924d2983ee4005f8132839c7e0fd77e /Source
parent5e5a21aadd1468e81ff7795c352898f2e115ae0e (diff)
downloadCMake-5ab002ea11921c4766912cfa7ca98756271f87dc.zip
CMake-5ab002ea11921c4766912cfa7ca98756271f87dc.tar.gz
CMake-5ab002ea11921c4766912cfa7ca98756271f87dc.tar.bz2
cmCxxModuleMapper: Remove redundant path conversion callbacks
Two calls to `PathForGenerator` were applied to values returned by `BmiGeneratorPathForModule`, that already calls `PathForGenerator`.
Diffstat (limited to 'Source')
-rw-r--r--Source/cmCxxModuleMapper.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmCxxModuleMapper.cxx b/Source/cmCxxModuleMapper.cxx
index 7952dfc..2c57c05 100644
--- a/Source/cmCxxModuleMapper.cxx
+++ b/Source/cmCxxModuleMapper.cxx
@@ -239,8 +239,7 @@ std::set<std::string> CxxModuleUsageSeed(
for (auto const& p : object.Provides) {
if (auto bmi_loc = loc.BmiGeneratorPathForModule(p.LogicalName)) {
// XXX(cxx-modules): How to support header units?
- usages.AddReference(p.LogicalName, loc.PathForGenerator(*bmi_loc),
- LookupMethod::ByName);
+ usages.AddReference(p.LogicalName, *bmi_loc, LookupMethod::ByName);
}
}
@@ -268,8 +267,7 @@ std::set<std::string> CxxModuleUsageSeed(
}
if (bmi_loc) {
- usages.AddReference(r.LogicalName, loc.PathForGenerator(*bmi_loc),
- r.Method);
+ usages.AddReference(r.LogicalName, *bmi_loc, r.Method);
}
}
}