This is an archive of the discontinued LLVM Phabricator instance.

[LLDB] Remove code duplication from RegisterContextPOSIX_*
ClosedPublic

Authored by omjavaid on May 17 2020, 11:34 PM.

Details

Summary

This patch aims to remove multiple copies of GetByteOrder() and ConvertRegisterKindToRegisterNumber used in various versions of RegisterContextPOSIX_*.

Both register implementations are move to RegisterContext class which is parent of RegisterContextPOSIX_* classes.

Built and tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabihf targets.

Diff Detail

Event Timeline

omjavaid created this revision.May 17 2020, 11:34 PM
labath accepted this revision.May 18 2020, 7:42 AM

Looks good. Thanks.

This revision is now accepted and ready to land.May 18 2020, 7:42 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 17 2020, 1:30 PM
Herald added a subscriber: jrtc27. · View Herald Transcript