[PATCH] D15619: [Support] Make llvm::Timer reusable

Vedant Kumar via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 17 12:42:11 PST 2015


vsk updated this revision to Diff 43174.
vsk added a comment.

- Make TimerGroup use accessors instead of accessing Timer directly.
- Retain the old `T.Started` behavior with `T.hasTriggered()`. This checks whether the Timer has ever been started. Fixes -ftime-report behavior.


http://reviews.llvm.org/D15619

Files:
  include/llvm/Support/Timer.h
  lib/Support/Timer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15619.43174.patch
Type: text/x-patch
Size: 4350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151217/6a53ede1/attachment.bin>


More information about the llvm-commits mailing list