[JITLink] Tighten section sorting criteria to fix a flaky test case.
authorLang Hames <lhames@gmail.com>
Tue, 29 Oct 2019 05:56:13 +0000 (22:56 -0700)
committerLang Hames <lhames@gmail.com>
Tue, 29 Oct 2019 05:56:13 +0000 (22:56 -0700)
commit5a955cc8b95a88fd0489d9b0a36ec86941ba6337
tree8ecde6f0349f8b2fa92a9e84d885618d2c867373
parent21bc8e5a137d76879223ac2d8ff1ba92e2ea3acb
[JITLink] Tighten section sorting criteria to fix a flaky test case.

Sections may have zero size and zero-sized sections may share a start address
with other zero-sized sections. For the section overlap test to function
correctly zero-sized sections must be ordered before any non-zero sized ones.

This should fix the intermittent failures in the
test/ExecutionEngine/JITLink/X86/MachO_zero_fill_alignment.s test case that
have been observed on some builders.
llvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp