Refactor a Module's TopHeaders to use FileEntryRef. This will keep
the paths serialized in a module the same as the ones used to look
up the header initially.
Details
- Reviewers
drodriguez jansvoboda11
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
clang/lib/Lex/ModuleMap.cpp | ||
---|---|---|
663 | It is unfortunately a fair bit. I spent some time on it but hit a roadblock with the FileManagers VirtualFileEntries: https://github.com/llvm/llvm-project/blob/main/clang/include/clang/Basic/FileManager.h#L70-L71 We would require this to be refactored to FileEntry too, as it is used here to provide a UID mapping to FileEntry pointers which needs to be changed to refs: https://github.com/llvm/llvm-project/blob/main/clang/lib/Basic/FileManager.cpp#L614-L633 I can put up a follow on diff once this one is shipped if preferred? |
clang/lib/Lex/ModuleMap.cpp | ||
---|---|---|
663 | Nice, i'll rebase this and add the remaining changes once its shipped. |
If we assert that File is not empty right away, why take OptionalFileEntryRef instead of FileEntryRef?