diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-08-07 13:27:41 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-08-07 13:27:41 +0000 |
commit | fff0f11989a9ef23ab3e308783cc90c7620000eb (patch) | |
tree | b44e00716fdd116c1a6505d1bd71f1ac1baab258 /lib/Support/Timer.cpp | |
parent | 0055fac7243626a7526c0f0823776e4b82ebd034 (diff) |
Roll back my last two commits, valgrind complains.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Timer.cpp')
-rw-r--r-- | lib/Support/Timer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Support/Timer.cpp b/lib/Support/Timer.cpp index bf45954849..44ee1777cb 100644 --- a/lib/Support/Timer.cpp +++ b/lib/Support/Timer.cpp @@ -20,7 +20,6 @@ #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; @@ -316,8 +315,8 @@ void TimerGroup::addTimer(Timer &T) { void TimerGroup::PrintQueuedTimers(raw_ostream &OS) { // Sort the timers in descending order by amount of time taken. - array_pod_sort(TimersToPrint.begin(), TimersToPrint.end()); - + std::sort(TimersToPrint.begin(), TimersToPrint.end()); + TimeRecord Total; for (unsigned i = 0, e = TimersToPrint.size(); i != e; ++i) Total += TimersToPrint[i].first; |