This is an archive of the discontinued LLVM Phabricator instance.

[lldb][NFCI] Merge implementations of ObjectFileMachO::GetMinimumOSVersion and ObjectFileMachO::GetSDKVersion
ClosedPublic

Authored by bulbazord on May 22 2023, 9:50 AM.

Details

Summary

These functions do the exact same thing (even if they look slightly
different). I yanked the common implementation, cleaned it up, and
shoved it into its own function.

Diff Detail

Event Timeline

bulbazord created this revision.May 22 2023, 9:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 9:50 AM
Herald added a subscriber: tschuett. · View Herald Transcript
bulbazord requested review of this revision.May 22 2023, 9:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 22 2023, 9:50 AM
jasonmolenda accepted this revision.May 22 2023, 3:43 PM

This looks good to me. I spent some time trying to see if there was a clear reason for the duplicated code; it was added in llvm-svn: 193380 in 2013 and they were very clearly identical back then. I don't see/can't think of any reason for it.

This revision is now accepted and ready to land.May 22 2023, 3:43 PM
JDevlieghere accepted this revision.May 22 2023, 4:20 PM