This patch removes uses of the deprecated DirectoryEntry::getName() from HeaderSearch::load*() functions by using DirectoryEntryRef instead.
Note that we bail out in one case and use the also deprecated FileEntry::getLastRef(). That's to prevent this patch from growing, and is addressed in a follow-up.
I'd prefer the following since I had to specifically go and check getDirRef, though I suppose I probably would have done so even with a comment π :