[Lldb-commits] [PATCH] D91241: [LLDB] Make offset field optional in RegisterInfo packet for Arm64

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 30 05:56:55 PST 2020


labath accepted this revision.
labath added a comment.
This revision is now accepted and ready to land.

In D91241#2422571 <https://reviews.llvm.org/D91241#2422571>, @omjavaid wrote:

> In D91241#2422517 <https://reviews.llvm.org/D91241#2422517>, @labath wrote:
>
>> Yes, but there's no reason that this _must_ be done in AddRegister, is there?
>>
>> You could just build a local map directly inside the finalize function, right?
>
> Yes this just avoid an extra iteration over m_regs list.

This is much better. The iteration doesn't cost much (if anything), but the member variable increases size of the object permentently.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D91241/new/

https://reviews.llvm.org/D91241



More information about the lldb-commits mailing list