diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-10-21 23:38:12 -0400 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-11-30 14:04:48 -0800 |
commit | ac40a2d8f16b8a8c68fc811d67f647740e965cb8 (patch) | |
tree | a1abc18b93bd7bf85a608ead3e4677bb2bd5744e /clang/lib/Lex/ModuleMap.cpp | |
parent | 9615890db576721fbd73ae77d81d39435e83b4b4 (diff) | |
download | llvm-ac40a2d8f16b8a8c68fc811d67f647740e965cb8.zip llvm-ac40a2d8f16b8a8c68fc811d67f647740e965cb8.tar.gz llvm-ac40a2d8f16b8a8c68fc811d67f647740e965cb8.tar.bz2 |
Serialization: Change InputFile to use FileEntryRef and add getVirtualFileRef, NFC
Change the `InputFile` class to store `Optional<FileEntryRef>` instead
of `FileEntry*`. This paged in a few API changes:
- Added `FileManager::getVirtualFileRef`, and converted `getVirtualFile`
to a wrapper of it.
- Updated `SourceManager::bypassFileContentsOverride` to take
`FileEntryRef` and return `Optional<FileEntryRef>`
(`ASTReader::getInputFile` is the only caller).
Differential Revision: https://reviews.llvm.org/D90053
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions