[MachineModuleInfoImpls] Replace qsort with array_pod_sort
authorMandeep Singh Grang <mgrang@codeaurora.org>
Thu, 26 Oct 2017 16:07:20 +0000 (16:07 +0000)
committerMandeep Singh Grang <mgrang@codeaurora.org>
Thu, 26 Oct 2017 16:07:20 +0000 (16:07 +0000)
commit049ed12df7f2a575355365dcedbd0dfe0737adfa
tree5bf6d5c53a79484fd548f47429c026ebbee47fc1
parent55540a0ce7e0f0fb96f33a8efd9fda91a3fe8868
[MachineModuleInfoImpls] Replace qsort with array_pod_sort

Summary:
This seems to be the only place in llvm we directly call qsort. We can replace
this with a call to array_pod_sort. Also minor cleanup of the sorting function.

Reviewers: bkramer, Eugene.Zelenko, rafael

Reviewed By: bkramer

Subscribers: efriedma, llvm-commits

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

llvm-svn: 316671
llvm/lib/CodeGen/MachineModuleInfoImpls.cpp