================
@@ -6341,14 +6350,12 @@ llvm::Error ASTReader::ReadSubmoduleBlock(ModuleFile &F,
}
case SUBMODULE_UMBRELLA_HEADER: {
- // FIXME: This doesn't work for framework modules as `Filename` is the
- // name as written in the module file and does not include
- // `Headers/`, so this path will never exist.
- auto Filename = ResolveImportedPath(PathBuf, Blob, F);
- if (auto Umbrella = PP.getFileManager().getOptionalFileRef(*Filename)) {
+ SmallString<128> RelativePathName;
+ if (auto Umbrella = ModMap.findUmbrellaHeaderForModule(
+ CurrentModule, Blob.str(), RelativePathName)) {
----------------
jansvoboda11 wrote:
Why run a search here instead of serializing `RelativePathName` into the PCM?
https://github.com/llvm/llvm-project/pull/181916
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits