diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-12-03 17:32:32 -0800 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2020-12-09 14:16:05 -0800 |
commit | 898d61b3cff5d79870d964c76d82764fef73efbb (patch) | |
tree | 63e09048c7324b6ece4e5658d82fb5fc964b612d /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | a7790508522fc277963df974dc953077778e3c11 (diff) | |
download | llvm-898d61b3cff5d79870d964c76d82764fef73efbb.zip llvm-898d61b3cff5d79870d964c76d82764fef73efbb.tar.gz llvm-898d61b3cff5d79870d964c76d82764fef73efbb.tar.bz2 |
ARCMigrate: Migrate ObjCMT.cpp over to FileEntryRef
Migrate ObjCMT.cpp from using `const FileEntry*` to `FileEntryRef`. This
is one of the blockers for changing `SourceManager` to use
`FileEntryRef`.
This adds an initial version of `SourceManager::getFileEntryRefForID`,
which uses to `FileEntry::getLastRef`; after `SourceManager` switches,
`SourceManager::getFileEntryForID` will need to call this function.
This also adds uses of `FileEntryRef` as a key in a `DenseMap`, and a
call to `hash_value(Optional)` in `DenseMapInfo<EditEntry>`; support for
these were added in prep commits.
Differential Revision: https://reviews.llvm.org/D92678
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions