summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
diff options
context:
space:
mode:
authorSean Fertile <sd.fertile@gmail.com>2020-02-13 09:22:47 -0500
committerSean Fertile <sd.fertile@gmail.com>2020-02-13 09:50:28 -0500
commitb2d1e002ca8a16acce7793324cdd155ef003d99f (patch)
tree76eac4adefe80235b4bb1af03a223bbdc156819e /lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp
parenta41550cff91b7fb2b56bf0e19ccb341bfd3e37b4 (diff)
[PowerPC][NFC] Small cleanup to restore CR field code in PPCFrameLowering.
Skip the loop over the CalleSavedInfos in 'restoreCalleeSavedRegisters' when the register is a CR field and we are not targeting 32-bit ELF. This is safe because: 1) The helper function 'restoreCRs' returns if the target is not 32-bit ELF, making all the code in the loop related to CR fields dead for every other subtarget. This code is only called on ELF right now, but the patch to extend it for AIX also needs to skip 'restoreCRs'. 2) The loop will not otherwise modify the iterator, so the iterator manipulations at the bottom of the loop end up setting 'I' to its current value. This simplifciation allows us to remove one argument from 'restoreCRs'. Also add a helper function to determine if a register is one of the callee saved condition register fields.
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.cpp')
0 files changed, 0 insertions, 0 deletions