summaryrefslogtreecommitdiff
path: root/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
commit933b16e665fba5b29fd83e762390f23c2eaf77db (patch)
treec68d9a9fc16b3f39853e4327439ad9421f5ebebc /lib/Support/Timer.cpp
parent5aa8df22e7b8a2ff40c231beacbd72fd61f5b419 (diff)
downloadllvm-933b16e665fba5b29fd83e762390f23c2eaf77db.tar.gz
llvm-933b16e665fba5b29fd83e762390f23c2eaf77db.tar.bz2
llvm-933b16e665fba5b29fd83e762390f23c2eaf77db.tar.xz
Kill rarely used std::sort.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110516 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Timer.cpp')
-rw-r--r--lib/Support/Timer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp
index 44ee1777cb..bf45954849 100644
--- a/lib/Support/Timer.cpp
+++ b/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;