aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Timer.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2021-11-06 18:31:18 -0800
committerKazu Hirata <kazu@google.com>2021-11-06 19:31:18 -0700
commit843d1eda18c3a7a700fe0858748e175727498d21 (patch)
tree2d232f95f6d6c42ac6b3bef8859f27ce02ad5d26 /llvm/lib/Support/Timer.cpp
parentbbab17c6c987d7a6612855c02a4e8988dac0dc17 (diff)
downloadllvm-843d1eda18c3a7a700fe0858748e175727498d21.zip
llvm-843d1eda18c3a7a700fe0858748e175727498d21.tar.gz
llvm-843d1eda18c3a7a700fe0858748e175727498d21.tar.bz2
[llvm] Use llvm::reverse (NFC)
Diffstat (limited to 'llvm/lib/Support/Timer.cpp')
-rw-r--r--llvm/lib/Support/Timer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Support/Timer.cpp b/llvm/lib/Support/Timer.cpp
index d691991..08e1a8a 100644
--- a/llvm/lib/Support/Timer.cpp
+++ b/llvm/lib/Support/Timer.cpp
@@ -393,8 +393,7 @@ void TimerGroup::PrintQueuedTimers(raw_ostream &OS) {
OS << " --- Name ---\n";
// Loop through all of the timing data, printing it out.
- for (const PrintRecord &Record : make_range(TimersToPrint.rbegin(),
- TimersToPrint.rend())) {
+ for (const PrintRecord &Record : llvm::reverse(TimersToPrint)) {
Record.Time.print(Total, OS);
OS << Record.Description << '\n';
}