swift: update for LLVM SVN r344140

Update swift's usage of clang::vfs which has been hoisted into LLVM.
This commit is contained in:
Saleem Abdulrasool
2018-10-12 09:09:02 -07:00
committed by Bob Wilson
parent fb305479b6
commit adcdc39791
7 changed files with 25 additions and 24 deletions

View File

@@ -20,6 +20,7 @@
#include "llvm/Support/Path.h"
#include "llvm/Support/Process.h"
#include "llvm/Support/Signals.h"
#include "llvm/Support/VirtualFileSystem.h"
using namespace swift;
@@ -223,7 +224,7 @@ std::error_code swift::moveFileIfDifferent(const llvm::Twine &source,
}
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
swift::vfs::getFileOrSTDIN(clang::vfs::FileSystem &FS,
swift::vfs::getFileOrSTDIN(llvm::vfs::FileSystem &FS,
const llvm::Twine &Filename,
int64_t FileSize,
bool RequiresNullTerminator,