mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
getNewMemBuffer memsets the buffer to zeros,
the caller don't have to initialize it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214994 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b9736caa6a
commit
6d48faf334
@ -107,7 +107,7 @@ public:
|
||||
StringRef BufferName = "");
|
||||
|
||||
/// getNewMemBuffer - Allocate a new MemoryBuffer of the specified size that
|
||||
/// is completely initialized to zeros. Note that the caller should
|
||||
/// 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.
|
||||
static MemoryBuffer *getNewMemBuffer(size_t Size, StringRef BufferName = "");
|
||||
|
@ -142,7 +142,7 @@ MemoryBuffer *MemoryBuffer::getNewUninitMemBuffer(size_t Size,
|
||||
}
|
||||
|
||||
/// getNewMemBuffer - Allocate a new MemoryBuffer of the specified size that
|
||||
/// is completely initialized to zeros. Note that the caller should
|
||||
/// 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.
|
||||
MemoryBuffer *MemoryBuffer::getNewMemBuffer(size_t Size, StringRef BufferName) {
|
||||
|
Loading…
Reference in New Issue
Block a user