projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
In the disassembler C API, be careful not to confuse the comment streamer that the...
[oota-llvm.git]
/
lib
/
Support
/
Timer.cpp
diff --git
a/lib/Support/Timer.cpp
b/lib/Support/Timer.cpp
index bf4595484981e9dcaa92337fd5ac5ca31218e35f..a9ed5eecfa7e0d9c9ee9bfa5cb229a8b752ccb41 100644
(file)
--- a/
lib/Support/Timer.cpp
+++ b/
lib/Support/Timer.cpp
@@
-17,10
+17,9
@@
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Format.h"
#include "llvm/Support/ManagedStatic.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Support/Format.h"
-#include "llvm/S
ystem
/Mutex.h"
-#include "llvm/S
ystem
/Process.h"
+#include "llvm/S
upport
/Mutex.h"
+#include "llvm/S
upport
/Process.h"
#include "llvm/ADT/OwningPtr.h"
#include "llvm/ADT/OwningPtr.h"
-#include "llvm/ADT/STLExtras.h"
#include "llvm/ADT/StringMap.h"
using namespace llvm;
#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.
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;
TimeRecord Total;
for (unsigned i = 0, e = TimersToPrint.size(); i != e; ++i)
Total += TimersToPrint[i].first;