[PATCH] D135636: [clang][modules][deps] Serialize inputs into PCMs using the "as requested" name
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 2 13:04:50 PST 2022
jansvoboda11 added inline comments.
================
Comment at: clang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp:447
+ SmallString<128> CanonicalPath = FE.getNameAsRequested();
+ ModMapInfo.canonicalizeModuleMapPath(CanonicalPath);
+ MD.ModuleMapFileDeps.emplace_back(CanonicalPath);
----------------
benlangmuir wrote:
> Was this canonicalization necessary? If this is needed can we do it in the implicit module build so that it is serialized with the correct path? That seems better for both stability of the implicit module build and avoids re-canonicalizing the path every time it is scanned.
Good question. Canonicalization is not necessary for the test to pass, so I removed it. We can do it during serialization if we discover it's necessary.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135636/new/
https://reviews.llvm.org/D135636
More information about the cfe-commits
mailing list