diff options
author | Abhina Sree <Abhina.Sreeskantharajan@ibm.com> | 2024-09-19 14:30:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-19 14:30:10 -0400 |
commit | edf3b277a5f2ebe144827ed47463c22743cac5f9 (patch) | |
tree | 99185acc509e869ab34528456e026b06f6594f6b /clang/unittests/Driver/ToolChainTest.cpp | |
parent | f3f3883f4b9d15770a5ce49956ed4425c71ad69f (diff) | |
download | llvm-edf3b277a5f2ebe144827ed47463c22743cac5f9.zip llvm-edf3b277a5f2ebe144827ed47463c22743cac5f9.tar.gz llvm-edf3b277a5f2ebe144827ed47463c22743cac5f9.tar.bz2 |
[SystemZ][z/OS] Propagate IsText parameter to open text files as text (#107906)
This patch adds an IsText parameter to the following functions
openFileForRead, getBufferForFile, getBufferForFileImpl and determines
whether a file is text by querying the file tag on z/OS. The default is
set to OF_Text instead of OF_None, this change in value does not affect
any other platforms other than z/OS.
Diffstat (limited to 'clang/unittests/Driver/ToolChainTest.cpp')
-rw-r--r-- | clang/unittests/Driver/ToolChainTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/unittests/Driver/ToolChainTest.cpp b/clang/unittests/Driver/ToolChainTest.cpp index a9b5f3c..6c8b32d 100644 --- a/clang/unittests/Driver/ToolChainTest.cpp +++ b/clang/unittests/Driver/ToolChainTest.cpp @@ -662,7 +662,7 @@ struct FileSystemWithError : public llvm::vfs::FileSystem { return std::make_error_code(std::errc::no_such_file_or_directory); } llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> - openFileForRead(const Twine &Path) override { + openFileForRead(const Twine &Path, bool IsText = true) override { return std::make_error_code(std::errc::permission_denied); } llvm::vfs::directory_iterator dir_begin(const Twine &Dir, |