This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Make TargetList iterable
ClosedPublic

Authored by JDevlieghere on Jul 13 2021, 10:34 AM.

Details

Summary

Make it possible to iterate over the TargetList.

Diff Detail

Event Timeline

JDevlieghere requested review of this revision.Jul 13 2021, 10:34 AM
JDevlieghere created this revision.
jingham accepted this revision.Jul 14 2021, 1:33 PM

LGTM, these Iterables make the code so much easier to read. Plus, though it's highly unlikely to happen, we shouldn't let another thread muck with the target list while we're Destroying its elements, so holding the lock is better practice.

This revision is now accepted and ready to land.Jul 14 2021, 1:33 PM
This revision was landed with ongoing or failed builds.Jul 14 2021, 1:36 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2021, 1:36 PM