[llvm-commits] [llvm] r110516 - /llvm/trunk/lib/Support/Timer.cpp
Benjamin Kramer
benny.kra at googlemail.com
Sat Aug 7 05:37:01 PDT 2010
Author: d0k
Date: Sat Aug 7 07:37:00 2010
New Revision: 110516
URL: http://llvm.org/viewvc/llvm-project?rev=110516&view=rev
Log:
Kill rarely used std::sort.
Modified:
llvm/trunk/lib/Support/Timer.cpp
Modified: llvm/trunk/lib/Support/Timer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Timer.cpp?rev=110516&r1=110515&r2=110516&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Timer.cpp (original)
+++ llvm/trunk/lib/Support/Timer.cpp Sat Aug 7 07:37:00 2010
@@ -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::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;
More information about the llvm-commits
mailing list