[llvm] r215248 - Reword comment slightly.
Eric Christopher
echristo at gmail.com
Fri Aug 8 17:35:37 PDT 2014
/facepalm
Thanks.
-eric
On Fri, Aug 8, 2014 at 5:31 PM, Filipe Cabecinhas <filcab at gmail.com> wrote:
> 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
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
>
> --
> F
>
More information about the llvm-commits
mailing list