diff options
author | Pavel Labath <labath@google.com> | 2017-12-18 10:50:59 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2017-12-18 10:50:59 +0000 |
commit | a0e3c6f6f5bcf72d2ea88e72a37eaa5ac2b9604c (patch) | |
tree | 6102c878c57f83a089d320b32d56c6f87cdb3b69 /lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp | |
parent | 9097a07e4e83b9f394598d53557247277b064b09 (diff) | |
download | llvm-a0e3c6f6f5bcf72d2ea88e72a37eaa5ac2b9604c.zip llvm-a0e3c6f6f5bcf72d2ea88e72a37eaa5ac2b9604c.tar.gz llvm-a0e3c6f6f5bcf72d2ea88e72a37eaa5ac2b9604c.tar.bz2 |
Reduce x86 register context boilerplate.
Summary:
The x86 FPR struct was defined as a struct containing a union between
two members: XSAVE and FXSAVE. This patch makes FPR a union directly to
remove one layer of indirection when trying to access the members.
The initial layout of these two structs is identical, which is
recognised by the fact that XSAVE has FXSAVE as its first member, so we
also considered removing one more layer and leave FPR identical to XSAVE
struct, but stopped short of doing that, as the FPR may be used to store
different layouts in the future (e.g., ones generated by the FSAVE
instruction).
Reviewers: clayborg, krytarowski
Subscribers: emaste, lldb-commits
Differential Revision: https://reviews.llvm.org/D41245
llvm-svn: 320966
Diffstat (limited to 'lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp')
0 files changed, 0 insertions, 0 deletions