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 | a7d0ccfe7fdb7d67fa4d0397aea2cd319e18d3d5 (patch) | |
tree | ead22bedbf905c15ee1c20680b8a482b8db01f1c /llvm/lib/Support/Timer.cpp | |
parent | b9525dea595db69f2e38c6b58c7aa5b731771d1d (diff) | |
download | bcm5719-llvm-a7d0ccfe7fdb7d67fa4d0397aea2cd319e18d3d5.tar.gz bcm5719-llvm-a7d0ccfe7fdb7d67fa4d0397aea2cd319e18d3d5.zip |
Roll back my last two commits, valgrind complains.
llvm-svn: 110518
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
-rw-r--r-- | llvm/lib/Support/Timer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp index bf459548498..44ee1777cb5 100644 --- a/llvm/lib/Support/Timer.cpp +++ b/llvm/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; |