aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/Support/Timer.h
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-06-22 23:37:06 +0000
committerOwen Anderson <resistor@mac.com>2009-06-22 23:37:06 +0000
commitaf2e2b54b6b69613a3f0705aa892b9ffb7d8ae64 (patch)
tree620250dfaee0df9c9bb5e489fcf797874c238698 /include/llvm/Support/Timer.h
parent91380b7239a3d09236b6fab64ba31b7ce0e0cb13 (diff)
Add guards around timer groups, which can be shared.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73923 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Timer.h')
-rw-r--r--include/llvm/Support/Timer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h
index 584199f440..9a8247071c 100644
--- a/include/llvm/Support/Timer.h
+++ b/include/llvm/Support/Timer.h
@@ -152,6 +152,7 @@ class TimerGroup {
unsigned NumTimers;
std::vector<Timer> TimersToPrint;
public:
+ TimerGroup() : Name("Miscellaneous Ungrouped Timers"), NumTimers(0) {}
explicit TimerGroup(const std::string &name) : Name(name), NumTimers(0) {}
~TimerGroup() {
assert(NumTimers == 0 &&