This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Use member function to determine PowerPC Secure PLT
ClosedPublic

Authored by brad on Feb 20 2023, 6:26 PM.

Details

Summary

Use member function to determine PowerPC Secure PLT. Less bits to keep in sync.

Diff Detail

Event Timeline

brad created this revision.Feb 20 2023, 6:26 PM
brad requested review of this revision.Feb 20 2023, 6:26 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 20 2023, 6:26 PM
brad added a reviewer: dim.Feb 20 2023, 6:28 PM
brad updated this revision to Diff 499018.Feb 20 2023, 7:51 PM
dim accepted this revision.Feb 21 2023, 6:53 AM

Yes, this is quite a bit nicer. Maybe run the isPPCSecurePlt() function through clang-format, just to be sure of the style?

(I think you can ignore the weird libFuzzer Unit Test errors, they don't seem to have anything to do with this change.)

This revision is now accepted and ready to land.Feb 21 2023, 6:53 AM
MaskRay accepted this revision.Feb 21 2023, 9:49 AM

isPPC32SecurePlt is probably more accurate.

dim added a comment.Feb 21 2023, 9:58 AM

isPPC32SecurePlt is probably more accurate.

I agree, good catch!

brad updated this revision to Diff 499222.Feb 21 2023, 10:15 AM

rename function and clang-format.

dim accepted this revision.Feb 21 2023, 10:28 AM

LGTM

MaskRay accepted this revision.Feb 21 2023, 10:31 AM
This revision was landed with ongoing or failed builds.Feb 21 2023, 11:14 AM
This revision was automatically updated to reflect the committed changes.