There is no EndPtr anymore - reinterpret the original comment in terms
authorDuncan Sands <baldrick@free.fr>
Wed, 10 Nov 2010 07:46:36 +0000 (07:46 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 10 Nov 2010 07:46:36 +0000 (07:46 +0000)
of InputData.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118677 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/MemoryBuffer.h

index 8a41aa5f94fa9a046231ae1ab73f80b5257b1d43..eb3e25d3dba8dfaa018b15d3b4b7064e2a4ca2d5 100644 (file)
@@ -71,13 +71,13 @@ public:
                                struct stat *FileInfo = 0);
 
   /// getMemBuffer - Open the specified memory range as a MemoryBuffer.  Note
-  /// that EndPtr[0] must be a null byte and be accessible!
+  /// that InputData must be null terminated.
   static MemoryBuffer *getMemBuffer(StringRef InputData,
                                     StringRef BufferName = "");
 
   /// getMemBufferCopy - Open the specified memory range as a MemoryBuffer,
-  /// copying the contents and taking ownership of it.  This has no requirements
-  /// on EndPtr[0].
+  /// copying the contents and taking ownership of it.  InputData does not
+  /// have to be null terminated.
   static MemoryBuffer *getMemBufferCopy(StringRef InputData,
                                         StringRef BufferName = "");