Kill rarely used std::sort.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110516 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Benjamin Kramer 2010-08-07 12:37:00 +00:00
parent 5aa8df22e7
commit 933b16e665

View File

@ -20,6 +20,7 @@
#include "llvm/System/Mutex.h" #include "llvm/System/Mutex.h"
#include "llvm/System/Process.h" #include "llvm/System/Process.h"
#include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringMap.h"
using namespace llvm; using namespace llvm;
@ -315,8 +316,8 @@ void TimerGroup::addTimer(Timer &T) {
void TimerGroup::PrintQueuedTimers(raw_ostream &OS) { void TimerGroup::PrintQueuedTimers(raw_ostream &OS) {
// Sort the timers in descending order by amount of time taken. // Sort the timers in descending order by amount of time taken.
std::sort(TimersToPrint.begin(), TimersToPrint.end()); array_pod_sort(TimersToPrint.begin(), TimersToPrint.end());
TimeRecord Total; TimeRecord Total;
for (unsigned i = 0, e = TimersToPrint.size(); i != e; ++i) for (unsigned i = 0, e = TimersToPrint.size(); i != e; ++i)
Total += TimersToPrint[i].first; Total += TimersToPrint[i].first;