OSDN Git Service

[tools] Change std::sort to llvm::sort in response to r327219
authorMandeep Singh Grang <mgrang@codeaurora.org>
Sun, 1 Apr 2018 21:24:53 +0000 (21:24 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Sun, 1 Apr 2018 21:24:53 +0000 (21:24 +0000)
commit4ead3eb1715aa7559b8adad4a57bceacc346d31a
tree6c8c95f737be3ad69093eeb4b954af0192dc1260
parentb8bd144ca177b887e88683e1081842071bef0889
[tools] 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: JDevlieghere, zturner, echristo, dberris, friss

Reviewed By: echristo

Subscribers: gbedwell, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@328943 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
tools/dsymutil/DebugMap.cpp
tools/dsymutil/DwarfLinker.cpp
tools/dsymutil/NonRelocatableStringpool.cpp
tools/llvm-config/llvm-config.cpp
tools/llvm-mca/InstrBuilder.cpp
tools/llvm-nm/llvm-nm.cpp
tools/llvm-objdump/COFFDump.cpp
tools/llvm-objdump/MachODump.cpp
tools/llvm-objdump/llvm-objdump.cpp
tools/llvm-pdbutil/DumpOutputStyle.cpp
tools/llvm-pdbutil/PrettyTypeDumper.cpp
tools/llvm-pdbutil/llvm-pdbutil.cpp
tools/llvm-readobj/COFFDumper.cpp
tools/llvm-xray/xray-account.cc
tools/yaml2obj/yaml2macho.cpp