summaryrefslogtreecommitdiff
path: root/include/llvm/Support/Timer.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-03-30 04:58:26 +0000
committerChris Lattner <sabre@nondot.org>2010-03-30 04:58:26 +0000
commit9f9f6d19dd67926446fb89a7b2dc0bda6353645b (patch)
tree118bf5b33e48a6c5bd6d2a36abaf6856a2d0de68 /include/llvm/Support/Timer.h
parentb9312690a2a79de490ab9c439b9b5d7c9319bff8 (diff)
downloadllvm-9f9f6d19dd67926446fb89a7b2dc0bda6353645b.tar.gz
llvm-9f9f6d19dd67926446fb89a7b2dc0bda6353645b.tar.bz2
llvm-9f9f6d19dd67926446fb89a7b2dc0bda6353645b.tar.xz
if a timergroup is destroyed before its timers, print times.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99873 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Timer.h')
-rw-r--r--include/llvm/Support/Timer.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h
index aba31506fc..2997a8744c 100644
--- a/include/llvm/Support/Timer.h
+++ b/include/llvm/Support/Timer.h
@@ -171,6 +171,7 @@ public:
explicit TimerGroup(const TimerGroup &TG) : FirstTimer(0) {
operator=(TG);
}
+ ~TimerGroup();
void operator=(const TimerGroup &TG) {
assert(TG.FirstTimer == 0 && FirstTimer == 0 &&
@@ -181,11 +182,6 @@ public:
void setName(const std::string &name) { Name = name; }
- ~TimerGroup() {
- assert(FirstTimer == 0 &&
- "TimerGroup destroyed before all contained timers!");
- }
-
void PrintQueuedTimers(raw_ostream &OS);
private: