This is an archive of the discontinued LLVM Phabricator instance.

ARCMigrate: Migrate ObjCMT.cpp over to FileEntryRef
ClosedPublic

Authored by dexonsmith on Dec 4 2020, 11:50 AM.

Details

Summary

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.

Diff Detail

Event Timeline

dexonsmith created this revision.Dec 4 2020, 11:50 AM
dexonsmith requested review of this revision.Dec 4 2020, 11:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2020, 11:50 AM

The prep commits are:

This revision is now accepted and ready to land.Dec 8 2020, 5:02 AM
This revision was landed with ongoing or failed builds.Dec 9 2020, 2:16 PM
This revision was automatically updated to reflect the committed changes.