mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-27 14:45:50 +00:00
Reword comment slightly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215248 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6039e045f
commit
2f58085b57
@ -106,10 +106,9 @@ public:
|
||||
static MemoryBuffer *getMemBufferCopy(StringRef InputData,
|
||||
StringRef BufferName = "");
|
||||
|
||||
/// getNewMemBuffer - Allocate a new MemoryBuffer of the specified size that
|
||||
/// is completely initialized to zeros. Note that the caller need not
|
||||
/// initialize the memory allocated by this method. The memory is owned by
|
||||
/// the MemoryBuffer object.
|
||||
/// getNewMemBuffer - Allocate a new zero-initialized MemoryBuffer of the
|
||||
/// specified size. Note that the caller need not initializethe memory
|
||||
/// allocated by this method. The memory is owned by the MemoryBuffer object.
|
||||
static MemoryBuffer *getNewMemBuffer(size_t Size, StringRef BufferName = "");
|
||||
|
||||
/// getNewUninitMemBuffer - Allocate a new MemoryBuffer of the specified size
|
||||
|
@ -141,10 +141,9 @@ MemoryBuffer *MemoryBuffer::getNewUninitMemBuffer(size_t Size,
|
||||
return new (Mem) MemoryBufferMem(StringRef(Buf, Size), true);
|
||||
}
|
||||
|
||||
/// getNewMemBuffer - Allocate a new MemoryBuffer of the specified size that
|
||||
/// is completely initialized to zeros. Note that the caller need not
|
||||
/// initialize the memory allocated by this method. The memory is owned by
|
||||
/// the MemoryBuffer object.
|
||||
/// getNewMemBuffer - Allocate a new zero-initialized MemoryBuffer of the
|
||||
/// specified size. Note that the caller need not initializethe memory
|
||||
/// allocated by this method. The memory is owned by the MemoryBuffer object.
|
||||
MemoryBuffer *MemoryBuffer::getNewMemBuffer(size_t Size, StringRef BufferName) {
|
||||
MemoryBuffer *SB = getNewUninitMemBuffer(Size, BufferName);
|
||||
if (!SB) return nullptr;
|
||||
|
Loading…
Reference in New Issue
Block a user