From 0f12f9096e1e33d88cb0b5601b0e035a2674c19a Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Wed, 4 Dec 2019 15:50:27 +0100 Subject: Revert "[llvm][Support] Take in CurrentDirectory as a parameter in ExpandResponseFiles" This reverts commit 75656005dbc8866e1888932a68a830b0df403560. --- clang/lib/Tooling/JSONCompilationDatabase.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/lib/Tooling/JSONCompilationDatabase.cpp') diff --git a/clang/lib/Tooling/JSONCompilationDatabase.cpp b/clang/lib/Tooling/JSONCompilationDatabase.cpp index 04dd4db..8dd4608 100644 --- a/clang/lib/Tooling/JSONCompilationDatabase.cpp +++ b/clang/lib/Tooling/JSONCompilationDatabase.cpp @@ -29,7 +29,6 @@ #include "llvm/Support/MemoryBuffer.h" #include "llvm/Support/Path.h" #include "llvm/Support/StringSaver.h" -#include "llvm/Support/VirtualFileSystem.h" #include "llvm/Support/YAMLParser.h" #include "llvm/Support/raw_ostream.h" #include @@ -170,7 +169,8 @@ class JSONCompilationDatabasePlugin : public CompilationDatabasePlugin { JSONDatabasePath, ErrorMessage, JSONCommandLineSyntax::AutoDetect); return Base ? inferTargetAndDriverMode( inferMissingCompileCommands(expandResponseFiles( - std::move(Base), llvm::vfs::getRealFileSystem()))) + std::move(Base), + llvm::vfs::createPhysicalFileSystem().release()))) : nullptr; } }; -- cgit v1.1