This is an archive of the discontinued LLVM Phabricator instance.

[lldb] NFC Add Process methods to Fix.*Address, to simplify this bit clearing across the codebase
ClosedPublic

Authored by jasonmolenda on Jun 13 2023, 3:15 PM.

Details

Summary

Right now to clear unaddressable bits (AArch64 TBI or ptrauth, armv7 0th bit setting for arm/thumb) everyone needs to take a Process, get the ABI, then call the method. As David and I had discussed in another patch, this is unnecessary friction that should be simplified.

This patch adds those same methods to Process, so the callers can skip the extra step of getting the ABI when working with these values.

I'm only adding the Process methods in this patch, leaving all the existing callers as-is, I'll look at updating those separately, but new users can start using these methods once they're in place.

Diff Detail

Event Timeline

jasonmolenda created this revision.Jun 13 2023, 3:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2023, 3:15 PM
jasonmolenda requested review of this revision.Jun 13 2023, 3:15 PM
DavidSpickett accepted this revision.Jun 14 2023, 1:00 AM

LGTM. Sinking the whole if abi dance into these methods will clean up a lot.

This revision is now accepted and ready to land.Jun 14 2023, 1:00 AM
This revision was automatically updated to reflect the committed changes.