diff options
author | Kazu Hirata <kazu@google.com> | 2021-11-06 18:31:18 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-11-06 19:31:18 -0700 |
commit | 843d1eda18c3a7a700fe0858748e175727498d21 (patch) | |
tree | 2d232f95f6d6c42ac6b3bef8859f27ce02ad5d26 /llvm/lib/Support/Timer.cpp | |
parent | bbab17c6c987d7a6612855c02a4e8988dac0dc17 (diff) | |
download | llvm-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.cpp | 3 |
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'; } |