[llvm] [Support] mmap when possible in getSTDIN. (PR #162013)

Yanzuo Liu via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 6 01:43:52 PDT 2025


================
@@ -143,7 +142,8 @@ class LLVM_ABI MemoryBuffer {
   getMemBufferCopy(StringRef InputData, const Twine &BufferName = "");
 
   /// Read all of stdin into a file buffer, and return it.
-  static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
+  static ErrorOr<std::unique_ptr<MemoryBuffer>>
+  getSTDIN(bool RequiresNullTerminatorRequires = true);
----------------
zwuis wrote:

Typo? `RequiresNullTerminator`


https://github.com/llvm/llvm-project/pull/162013


More information about the llvm-commits mailing list