[llvm] r215248 - Reword comment slightly.

Filipe Cabecinhas filcab at gmail.com
Fri Aug 8 17:31:10 PDT 2014


Please separate "initializethe". ;-)

Thanks

  Filipe

On Friday, August 8, 2014, Eric Christopher <echristo at gmail.com> wrote:

> 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;
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu <javascript:;>
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>


-- 
  F
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140809/c9bcfa9f/attachment.html>


More information about the llvm-commits mailing list