[lldb] [DynamicRegisterInfo] Refactor SetRegisterInfo()
authorMichał Górny <mgorny@moritz.systems>
Tue, 28 Sep 2021 10:04:15 +0000 (12:04 +0200)
committerMichał Górny <mgorny@moritz.systems>
Tue, 28 Sep 2021 14:47:58 +0000 (16:47 +0200)
commit86cd2369b6cd7eb17374fb31bccac7895fe34658
treed38502c92d6965d6ca73d4250762ded0477ea427
parentfdd8c10959544c14ddcf874fd9c2841a8bea1d21
[lldb] [DynamicRegisterInfo] Refactor SetRegisterInfo()

Move the "slice" and "composite" handling into separate methods to avoid
if/else hell.  Use more LLVM types whenever possible.  Replace printf()s
with llvm::Error combined with LLDB logging.

Differential Revision: https://reviews.llvm.org/D110619
lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.cpp
lldb/source/Plugins/Process/Utility/DynamicRegisterInfo.h