This is an archive of the discontinued LLVM Phabricator instance.

Frontend: Migrate to FileEntryRef in CompilerInstance::InitializeSourceManager, NFC
ClosedPublic

Authored by dexonsmith on Dec 4 2020, 12:43 PM.

Details

Summary

Use FileManager::getVirtualFileRef to get the virtual file for stdin,
and add an overload of SourceManager::overrideFileContents that takes
a FileEntryRef, migrating CompilerInstance::InitializeSourceManager.

Diff Detail

Event Timeline

dexonsmith created this revision.Dec 4 2020, 12:43 PM
dexonsmith requested review of this revision.Dec 4 2020, 12:43 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 4 2020, 12:43 PM
This revision is now accepted and ready to land.Dec 8 2020, 5:03 AM