[llvm][vfs] NFC: Virtualize in-memory `getStatus`
authorJan Svoboda <jan_svoboda@apple.com>
Thu, 20 Jan 2022 14:05:38 +0000 (15:05 +0100)
committerJan Svoboda <jan_svoboda@apple.com>
Thu, 20 Jan 2022 14:48:02 +0000 (15:48 +0100)
commit9e24d14ac89f44bb6c9141561ca849ccdd09e6a8
treee0364f9bdad4e413da53a870321b7a5e50fc93ba
parent6d45284618f08fa28dc515cab96fa573c4c4479e
[llvm][vfs] NFC: Virtualize in-memory `getStatus`

This patch virtualizes the `getStatus` function on `InMemoryNode` in LLVM VFS. Currently, this is implemented via top-level function `getNodeStatus` that tries to cast `InMemoryNode *` into each subtype. Virtual functions seem to be the simpler solution here.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D117649
llvm/lib/Support/VirtualFileSystem.cpp