This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump/mac] Print symbols at the same address deterministically
ClosedPublic

Authored by int3 on Jun 30 2021, 3:54 PM.

Details

Summary

By using stable_sort.

Added a test case which previously failed when expensive checks were
enabled.

Diff Detail

Event Timeline

int3 created this revision.Jun 30 2021, 3:54 PM
int3 requested review of this revision.Jun 30 2021, 3:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 30 2021, 3:54 PM
MaskRay accepted this revision.Jun 30 2021, 4:41 PM

Thanks!

llvm/test/tools/llvm-objdump/MachO/disassemble-symbol-same-addr.test
11

You can add more symbols so that the test can more "deterministically" catch non-determinism.

This revision is now accepted and ready to land.Jun 30 2021, 4:41 PM
int3 updated this revision to Diff 355750.Jun 30 2021, 7:32 PM
int3 marked an inline comment as done.
int3 retitled this revision from [llvm-objdump] Print symbols at the same address deterministically to [llvm-objdump/mac] Print symbols at the same address deterministically.

more symbols

This revision was landed with ongoing or failed builds.Jun 30 2021, 7:38 PM
This revision was automatically updated to reflect the committed changes.