]> granicus.if.org Git - llvm/commit
[Support] Renamed member 'Size' to 'AllocatedSize' in MemoryBlock and OwningMemoryBlock.
authorLang Hames <lhames@gmail.com>
Mon, 20 May 2019 20:53:05 +0000 (20:53 +0000)
committerLang Hames <lhames@gmail.com>
Mon, 20 May 2019 20:53:05 +0000 (20:53 +0000)
commit766312c7e0929c182067a5721e17727685f480a3
tree8a281b316c7ed7a20d16d541ae6d3c88d6da7fe2
parenta957b3fd1455cc2c5a814e12f4adda0c92403fe0
[Support] Renamed member 'Size' to 'AllocatedSize' in MemoryBlock and OwningMemoryBlock.

Rename member 'Size' to 'AllocatedSize' in order to provide a hint that the
allocated size may be different than the requested size. Comments are added to
clarify this point.  Updated the InMemoryBuffer in FileOutputBuffer.cpp to track
the requested buffer size.

Patch by Machiel van Hooren. Thanks Machiel!

https://reviews.llvm.org/D61599

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@361195 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/Memory.h
lib/ExecutionEngine/JITLink/JITLink.cpp
lib/ExecutionEngine/SectionMemoryManager.cpp
lib/Support/FileOutputBuffer.cpp
lib/Support/Memory.cpp
lib/Support/Unix/Memory.inc
lib/Support/Windows/Memory.inc
tools/llvm-rtdyld/llvm-rtdyld.cpp
unittests/Support/MemoryTest.cpp