summaryrefslogtreecommitdiff
path: root/include/llvm/Support/MemoryBuffer.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-11-10 07:46:36 +0000
committerDuncan Sands <baldrick@free.fr>2010-11-10 07:46:36 +0000
commit867fe8570f299a058f155f98646d85cabc27155b (patch)
tree75633a4ff213cdff4f2b6af2f1f5c326a82d185f /include/llvm/Support/MemoryBuffer.h
parent2c4d5125c708bb35140fc2a40b02beb1add101db (diff)
downloadllvm-867fe8570f299a058f155f98646d85cabc27155b.tar.gz
llvm-867fe8570f299a058f155f98646d85cabc27155b.tar.bz2
llvm-867fe8570f299a058f155f98646d85cabc27155b.tar.xz
There is no EndPtr anymore - reinterpret the original comment in terms
of InputData. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@118677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MemoryBuffer.h')
-rw-r--r--include/llvm/Support/MemoryBuffer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Support/MemoryBuffer.h b/include/llvm/Support/MemoryBuffer.h
index 8a41aa5f94..eb3e25d3db 100644
--- a/include/llvm/Support/MemoryBuffer.h
+++ b/include/llvm/Support/MemoryBuffer.h
@@ -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 = "");