This is an archive of the discontinued LLVM Phabricator instance.

HeaderSearch: Simplify use of FileEntryRef in HeaderSearch::LookupFile, NFC
ClosedPublic

Authored by dexonsmith on Oct 15 2020, 2:30 PM.

Details

Summary

Simplify HeaderSearch::LookupFile. Instead of deconstructing a
FileEntryRef into a name and FileEntry and then rebuilding it later,
use it as is. This helps to unblock making the constructor of
FileEntryRef private to FileManager.

Diff Detail

Event Timeline

dexonsmith created this revision.Oct 15 2020, 2:30 PM
arphaman accepted this revision.Oct 23 2020, 4:53 PM
This revision is now accepted and ready to land.Oct 23 2020, 4:53 PM
JDevlieghere accepted this revision.Oct 23 2020, 8:44 PM
dexonsmith closed this revision.Oct 26 2020, 9:35 AM