aboutsummaryrefslogtreecommitdiff
path: root/lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2021-03-30 16:43:12 -0700
committerCraig Topper <craig.topper@sifive.com>2021-03-30 17:36:50 -0700
commitf59ba0849f7a148265dcc89d36a11717d365f368 (patch)
treee4a012091a8358945e1efbef592305a559ac55cd /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
parentfb0b19c3de3b49bd6c343d6c02293cbcc77520fb (diff)
downloadllvm-f59ba0849f7a148265dcc89d36a11717d365f368.zip
llvm-f59ba0849f7a148265dcc89d36a11717d365f368.tar.gz
llvm-f59ba0849f7a148265dcc89d36a11717d365f368.tar.bz2
[StructLayout] Use TrailingObjects to allocate space for MemberOffsets.
MemberOffsets are stored at the end of StructLayout. The class contains a single entry array to mark the start of the member offsets. getStructLayout calculates the additional space needed for additional elements before allocating memory. This patch converts this to use TrailingObjects. This simplifies the size computation in getStructLayout and gets rid of the single entry array. This is prep work, but to use TypeSize instead of uint64_t for D98169. The single entry array doesn't work with TypeSize because TypeSize doesn't have a default constructor. We thought this change was an improvement by itself so we've separated it out. Reviewed By: mehdi_amini Differential Revision: https://reviews.llvm.org/D99608
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
0 files changed, 0 insertions, 0 deletions