diff options
author | Pavel Labath <labath@google.com> | 2020-02-03 17:58:37 +0100 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2020-02-17 14:01:36 +0100 |
commit | 07355c1c08be54e6fda494168724e76e7e7da8cd (patch) | |
tree | f10662f513ac90cb36f32f8d94b5102f8f6122c0 /llvm/lib/Bitcode | |
parent | 801627ee490e1106380184256503dbd520c5f802 (diff) | |
download | llvm-07355c1c08be54e6fda494168724e76e7e7da8cd.zip llvm-07355c1c08be54e6fda494168724e76e7e7da8cd.tar.gz llvm-07355c1c08be54e6fda494168724e76e7e7da8cd.tar.bz2 |
[lldb] Delete register info definitions in the x86_64 ABI classes
Summary:
These definitions are used to "augment" information received from the remote
target with eh/debug frame and "generic" register numbers.
Besides being verbose, this information was also incomplete (new registers like
xmm16-31 were missing) and sometimes even downright wrong (ymm register
numbers).
Most of this information is available via llvm's MCRegisterInfo. This patch
creates a new class, MCBasedABI, which retrieves the eh and debug frame register
numbers this way. The tricky part here is that the llvm class uses all-caps
register names, whereas lldb register are lowercase, and sometimes called
slightly differently. Therefore this class introduces some hooks to allow a
subclass to customize the MC lookup. The subclass also needs to suply the
"generic" register numbers, as this is an lldb invention.
This patch ports the x86_64 ABI classes to use the new register info mechanism.
It also creates a new "ABIx86_64" class which can be used to house code common
to x86_64 both ABIs. Right now, this just consists of a single function, but
there are plenty of other things that could be moved here too.
Reviewers: JDevlieghere, jasonmolenda
Subscribers: mgorny, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D74244
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions