diff options
author | Abhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com> | 2024-09-20 08:18:16 -0400 |
---|---|---|
committer | Abhina Sreeskantharajan <Abhina.Sreeskantharajan@ibm.com> | 2024-09-20 08:18:16 -0400 |
commit | efdb3ae23247850d3886e3708400f0d991ed59e1 (patch) | |
tree | e336b83aad0f1032b0fd092b07a2dc601fcc5a11 /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | d6f91200fe95dbf30a091af3ba039a817e7ddf14 (diff) | |
download | llvm-efdb3ae23247850d3886e3708400f0d991ed59e1.zip llvm-efdb3ae23247850d3886e3708400f0d991ed59e1.tar.gz llvm-efdb3ae23247850d3886e3708400f0d991ed59e1.tar.bz2 |
Revert "[SystemZ][z/OS] Propagate IsText parameter to open text files as text (#107906)"
This reverts commit edf3b277a5f2ebe144827ed47463c22743cac5f9.
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
-rw-r--r-- | llvm/unittests/Support/VirtualFileSystemTest.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/unittests/Support/VirtualFileSystemTest.cpp b/llvm/unittests/Support/VirtualFileSystemTest.cpp index 219aaef..eb590e4 100644 --- a/llvm/unittests/Support/VirtualFileSystemTest.cpp +++ b/llvm/unittests/Support/VirtualFileSystemTest.cpp @@ -67,7 +67,7 @@ public: return I->second; } ErrorOr<std::unique_ptr<vfs::File>> - openFileForRead(const Twine &Path, bool IsText = true) override { + openFileForRead(const Twine &Path) override { auto S = status(Path); if (S) return std::unique_ptr<vfs::File>(new DummyFile{*S}); @@ -3389,9 +3389,9 @@ TEST(RedirectingFileSystemTest, ExternalPaths) { } llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> - openFileForRead(const Twine &Path, bool IsText = true) override { + openFileForRead(const Twine &Path) override { SeenPaths.push_back(Path.str()); - return ProxyFileSystem::openFileForRead(Path, IsText); + return ProxyFileSystem::openFileForRead(Path); } std::error_code isLocal(const Twine &Path, bool &Result) override { |