summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/Timer.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-08-07 12:37:00 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-08-07 12:37:00 +0000
commit591a79fb2ff574d45ced49e1a97f5f801871a04b (patch)
tree35af18d31eccf501ab86d4d44d06c745c07d39a9 /llvm/lib/Support/Timer.cpp
parent114e55df5bb74759d60446abebc72e4048fe56d9 (diff)
downloadbcm5719-llvm-591a79fb2ff574d45ced49e1a97f5f801871a04b.tar.gz
bcm5719-llvm-591a79fb2ff574d45ced49e1a97f5f801871a04b.zip
Kill rarely used std::sort.
llvm-svn: 110516
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
-rw-r--r--llvm/lib/Support/Timer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index 44ee1777cb5..bf459548498 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -20,6 +20,7 @@
#include "llvm/System/Mutex.h"
#include "llvm/System/Process.h"
#include "llvm/ADT/OwningPtr.h"
+#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringMap.h"
using namespace llvm;
@@ -315,8 +316,8 @@ void TimerGroup::addTimer(Timer &T) {
void TimerGroup::PrintQueuedTimers(raw_ostream &OS) {
// 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;
for (unsigned i = 0, e = TimersToPrint.size(); i != e; ++i)
Total += TimersToPrint[i].first;
OpenPOWER on IntegriCloud