[llvm] r215248 - Reword comment slightly.

Eric Christopher echristo at gmail.com
Fri Aug 8 15:09:00 PDT 2014


Author: echristo
Date: Fri Aug  8 17:09:00 2014
New Revision: 215248

URL: http://llvm.org/viewvc/llvm-project?rev=215248&view=rev
Log:
Reword comment slightly.

Modified:
    llvm/trunk/include/llvm/Support/MemoryBuffer.h
    llvm/trunk/lib/Support/MemoryBuffer.cpp

Modified: llvm/trunk/include/llvm/Support/MemoryBuffer.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/MemoryBuffer.h?rev=215248&r1=215247&r2=215248&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/MemoryBuffer.h (original)
+++ llvm/trunk/include/llvm/Support/MemoryBuffer.h Fri Aug  8 17:09:00 2014
@@ -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

Modified: llvm/trunk/lib/Support/MemoryBuffer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/MemoryBuffer.cpp?rev=215248&r1=215247&r2=215248&view=diff
==============================================================================
--- llvm/trunk/lib/Support/MemoryBuffer.cpp (original)
+++ llvm/trunk/lib/Support/MemoryBuffer.cpp Fri Aug  8 17:09:00 2014
@@ -141,10 +141,9 @@ MemoryBuffer *MemoryBuffer::getNewUninit
   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;





More information about the llvm-commits mailing list