mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
Kill rarely used std::sort.
llvm-svn: 110516
This commit is contained in:
parent
ffdaca28a5
commit
70df356537
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user