Reword comment slightly.
authorEric Christopher <echristo@gmail.com>
Fri, 8 Aug 2014 22:09:00 +0000 (22:09 +0000)
committerEric Christopher <echristo@gmail.com>
Fri, 8 Aug 2014 22:09:00 +0000 (22:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215248 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/MemoryBuffer.h
lib/Support/MemoryBuffer.cpp

index 298339210978ef99af5adbd41129389e82d488e7..253178ebb570ea7d133dccfb6f7b512b2d9dc47b 100644 (file)
@@ -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
index 75f25beda82337a6c070df78e4117459bb2d6f83..03d2d7d2b889572fe03c2b75d0ecc167b4568be8 100644 (file)
@@ -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;