diff options
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInstance.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp index 5311c804974..61fe26c9222 100644 --- a/clang/lib/Frontend/CompilerInstance.cpp +++ b/clang/lib/Frontend/CompilerInstance.cpp @@ -194,15 +194,10 @@ CompilerInstance::createDiagnostics(DiagnosticOptions *Opts, return Diags; } -void CompilerInstance::createVirtualFileSystem() { - VirtualFileSystem = vfs::getRealFileSystem(); -} - // File Manager void CompilerInstance::createFileManager() { - assert(hasVirtualFileSystem() && "expected virtual file system"); - FileMgr = new FileManager(getFileSystemOpts(), VirtualFileSystem); + FileMgr = new FileManager(getFileSystemOpts()); } // Source Manager @@ -872,8 +867,6 @@ static void compileModule(CompilerInstance &ImportingInstance, ImportingInstance.getDiagnosticClient()), /*ShouldOwnClient=*/true); - Instance.setVirtualFileSystem(&ImportingInstance.getVirtualFileSystem()); - // Note that this module is part of the module build stack, so that we // can detect cycles in the module graph. Instance.createFileManager(); // FIXME: Adopt file manager from importer? |