Frontend: Remove CompilerInstance::VirtualFileSystem, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 26 Mar 2019 22:18:52 +0000 (22:18 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 26 Mar 2019 22:18:52 +0000 (22:18 +0000)
commit1da7eac87c15662f808f69e260e3ec47923c28f6
tree200e20c53a6506ef729d433f6587de98937af73d
parent19c45546fc70d705ce3b470fca4289f33d0cdc20
Frontend: Remove CompilerInstance::VirtualFileSystem, NFC

Remove CompilerInstance::VirtualFileSystem and
CompilerInstance::setVirtualFileSystem, instead relying on the VFS in
the FileManager.  CompilerInstance and its clients already went to some
trouble to make these match.  Now they are guaranteed to match.

As part of this, I added a VFS parameter (defaults to nullptr) to
CompilerInstance::createFileManager, to avoid repeating construction
logic in clients that just wanted to customize the VFS.

https://reviews.llvm.org/D59377

llvm-svn: 357037
clang-tools-extra/clangd/Compiler.cpp
clang/include/clang/Basic/FileManager.h
clang/include/clang/Frontend/CompilerInstance.h
clang/lib/Frontend/ASTUnit.cpp
clang/lib/Frontend/CompilerInstance.cpp
clang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp