There is no EndPtr anymore - reinterpret the original comment in terms

of InputData.

llvm-svn: 118677
This commit is contained in:
Duncan Sands 2010-11-10 07:46:36 +00:00
parent ad31b5f2cb
commit 812834b86c
1 changed files with 3 additions and 3 deletions

View 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 = "");