Frontend: Migrate to FileEntryRef in TextDiagnosticTest, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 9 Dec 2020 21:41:17 +0000 (13:41 -0800)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Sat, 12 Dec 2020 01:06:28 +0000 (17:06 -0800)
commita60043219907b8f370263b7d3d4827b83388d8cf
tree6603a05144bbd03e3ce94e12742c5c46b0630f4a
parent42f628c8426958daececdd997869024aedc0a068
Frontend: Migrate to FileEntryRef in TextDiagnosticTest, NFC

Migrate over to the `FileEntryRef` overloads of
`SourceManager::createFileID` and `overrideFileContents` (using
`getVirtualFileRef`) in `TextDiagnostic`'s `ShowLine` test.

No functionality change.

Differential Revision: https://reviews.llvm.org/D92968
clang/unittests/Frontend/TextDiagnosticTest.cpp