OSDN Git Service

[MC] Change std::sort to llvm::sort in response to r327219
authorMandeep Singh Grang <mgrang@codeaurora.org>
Fri, 13 Apr 2018 19:47:01 +0000 (19:47 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Fri, 13 Apr 2018 19:47:01 +0000 (19:47 +0000)
commit648f7eaefcfc99c140fd56a36a188b19694bfb5d
treea8925e3459dad92918be323ba327de0c111daaa1
parent74fc0f2259d005de07486006fca503f22f4215a0
[MC] Change std::sort to llvm::sort in response to r327219

Summary:
r327219 added wrappers to std::sort which randomly shuffle the container before sorting.
This will help in uncovering non-determinism caused due to undefined sorting
order of objects having the same key.

To make use of that infrastructure we need to invoke llvm::sort instead of std::sort.

Note: This patch is one of a series of patches to replace *all* std::sort to llvm::sort.
Refer the comments section in D44363 for a list of all the required patches.

Reviewers: grosbach, void, ruiu

Reviewed By: ruiu

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D45138

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@330058 91177308-0d34-0410-b5e6-96231b3b80d8
lib/MC/MachObjectWriter.cpp
lib/MC/WinCOFFObjectWriter.cpp