[llvm-commits] [llvm] r118677 - /llvm/trunk/include/llvm/Support/MemoryBuffer.h
Duncan Sands
baldrick at free.fr
Tue Nov 9 23:46:36 PST 2010
Author: baldrick
Date: Wed Nov 10 01:46:36 2010
New Revision: 118677
URL: http://llvm.org/viewvc/llvm-project?rev=118677&view=rev
Log:
There is no EndPtr anymore - reinterpret the original comment in terms
of InputData.
Modified:
llvm/trunk/include/llvm/Support/MemoryBuffer.h
Modified: llvm/trunk/include/llvm/Support/MemoryBuffer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MemoryBuffer.h?rev=118677&r1=118676&r2=118677&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/MemoryBuffer.h (original)
+++ llvm/trunk/include/llvm/Support/MemoryBuffer.h Wed Nov 10 01:46:36 2010
@@ -71,13 +71,13 @@
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 = "");
More information about the llvm-commits
mailing list