[clang] [clang][modules] Use file name as requested (PR #68957)

Jan Svoboda via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 13 17:25:49 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);
----------------
jansvoboda11 wrote:

Done in the two new commits.

https://github.com/llvm/llvm-project/pull/68957


More information about the cfe-commits mailing list