@@ -530,7 +530,7 @@ void FileManager::fillRealPathName(FileEntry *UFE, llvm::StringRef FileName) {
530530
531531llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
532532FileManager::getBufferForFile (FileEntryRef FE, bool isVolatile,
533- bool RequiresNullTerminator,
533+ bool RequiresNullTerminator, bool IsText,
534534 std::optional<int64_t > MaybeLimit) {
535535 const FileEntry *Entry = &FE.getFileEntry ();
536536 // If the content is living on the file entry, return a reference to it.
@@ -558,21 +558,21 @@ FileManager::getBufferForFile(FileEntryRef FE, bool isVolatile,
558558
559559 // Otherwise, open the file.
560560 return getBufferForFileImpl (Filename, FileSize, isVolatile,
561- RequiresNullTerminator);
561+ RequiresNullTerminator, IsText );
562562}
563563
564564llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
565565FileManager::getBufferForFileImpl (StringRef Filename, int64_t FileSize,
566- bool isVolatile,
567- bool RequiresNullTerminator ) const {
566+ bool isVolatile, bool RequiresNullTerminator,
567+ bool IsText ) const {
568568 if (FileSystemOpts.WorkingDir .empty ())
569569 return FS->getBufferForFile (Filename, FileSize, RequiresNullTerminator,
570- isVolatile);
570+ isVolatile, IsText );
571571
572572 SmallString<128 > FilePath (Filename);
573573 FixupRelativePath (FilePath);
574574 return FS->getBufferForFile (FilePath, FileSize, RequiresNullTerminator,
575- isVolatile);
575+ isVolatile, IsText );
576576}
577577
578578// / getStatValue - Get the 'stat' information for the specified path,
0 commit comments