[clang] [clang][modules] Use file name as requested (PR #68957)
Ben Langmuir via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 13 13:25:03 PDT 2023
================
@@ -1384,10 +1384,10 @@ void ASTWriter::WriteControlBlock(Preprocessor &PP, ASTContext &Context,
SmallVector<FileEntryRef, 1> ModMaps(AdditionalModMaps->begin(),
AdditionalModMaps->end());
llvm::sort(ModMaps, [](FileEntryRef A, FileEntryRef B) {
- return A.getName() < B.getName();
+ return A.getNameAsRequested() < B.getNameAsRequested();
});
for (FileEntryRef F : ModMaps)
- AddPath(F.getName(), Record);
+ AddPath(F.getNameAsRequested(), Record);
----------------
benlangmuir wrote:
How does this relate to the header search part of the change?
https://github.com/llvm/llvm-project/pull/68957
More information about the cfe-commits
mailing list