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 /clang/lib/Basic/SourceManager.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 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index fe3aff7..65a8a72 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -121,18 +121,8 @@ ContentCache::getBufferOrNone(DiagnosticsEngine &Diag, FileManager &FM, // Start with the assumption that the buffer is invalid to simplify early // return paths. IsBufferInvalid = true; - bool IsText = false; - -#ifdef __MVS__ - // If the file is tagged with a text ccsid, it may require autoconversion. - llvm::ErrorOr<bool> IsFileText = - llvm::iszOSTextFile(ContentsEntry->getName().data()); - if (IsFileText) - IsText = *IsFileText; -#endif - - auto BufferOrError = FM.getBufferForFile( - *ContentsEntry, IsFileVolatile, /*RequiresNullTerminator=*/true, IsText); + + auto BufferOrError = FM.getBufferForFile(*ContentsEntry, IsFileVolatile); // If we were unable to open the file, then we are in an inconsistent // situation where the content cache referenced a file which no longer |