[clang] [clang][deps] Load module map file from PCM (PR #66389)
Ben Langmuir via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 14 09:54:05 PDT 2023
================
@@ -482,16 +482,9 @@ ModuleDepCollectorPP::handleTopLevelModule(const Module *M) {
MD.ID.ModuleName = M->getFullModuleName();
MD.IsSystem = M->IsSystem;
- ModuleMap &ModMapInfo =
- MDC.ScanInstance.getPreprocessor().getHeaderSearchInfo().getModuleMap();
-
- OptionalFileEntryRef ModuleMap = ModMapInfo.getModuleMapFileForUniquing(M);
-
- if (ModuleMap) {
- SmallString<128> Path = ModuleMap->getNameAsRequested();
- ModMapInfo.canonicalizeModuleMapPath(Path);
- MD.ClangModuleMapFile = std::string(Path);
- }
+ assert(!M->PresumedModuleMapFile.empty() &&
----------------
benlangmuir wrote:
There's a comment in Module.h: `/// Only non-empty when building from preprocessed source.` that should probably be deleted.
https://github.com/llvm/llvm-project/pull/66389
More information about the cfe-commits
mailing list