This is an archive of the discontinued LLVM Phabricator instance.

SourceManager: Change getOrCreateFileID API to take FileEntryRef, NFC
AcceptedPublic

Authored by dexonsmith on Dec 9 2020, 5:02 PM.

Details

Summary

Update SourceManager::getOrCreateFileID to take a FileEntryRef and
migrate all the callers (mostly calling
FileManager::getOptionalFileRef). Also drop the FileEntry* version
of SourceManager::createFileID since this was the last remaining use
of it.

Diff Detail