From a885796d5fd85e4c7c71407feb48553ef7d4e258 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 26 Oct 2014 22:44:13 +0000 Subject: Make VFS and FileManager match the current MemoryBuffer API. This eliminates converting back and forth between the 3 formats and gives us a more homogeneous interface. llvm-svn: 220657 --- clang/unittests/Basic/VirtualFileSystemTest.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'clang/unittests/Basic/VirtualFileSystemTest.cpp') diff --git a/clang/unittests/Basic/VirtualFileSystemTest.cpp b/clang/unittests/Basic/VirtualFileSystemTest.cpp index e6c8b2773c7..67beb923d97 100644 --- a/clang/unittests/Basic/VirtualFileSystemTest.cpp +++ b/clang/unittests/Basic/VirtualFileSystemTest.cpp @@ -39,14 +39,8 @@ public: return make_error_code(llvm::errc::no_such_file_or_directory); return I->second; } - std::error_code openFileForRead(const Twine &Path, - std::unique_ptr &Result) override { - llvm_unreachable("unimplemented"); - } - std::error_code getBufferForFile(const Twine &Name, - std::unique_ptr &Result, - int64_t FileSize = -1, - bool RequiresNullTerminator = true) { + ErrorOr> + openFileForRead(const Twine &Path) override { llvm_unreachable("unimplemented"); } -- cgit v1.2.3