diff options
author | Chris Lattner <sabre@nondot.org> | 2010-03-30 04:58:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-03-30 04:58:26 +0000 |
commit | 9f9f6d19dd67926446fb89a7b2dc0bda6353645b (patch) | |
tree | 118bf5b33e48a6c5bd6d2a36abaf6856a2d0de68 /include/llvm/Support | |
parent | b9312690a2a79de490ab9c439b9b5d7c9319bff8 (diff) | |
download | external_llvm-9f9f6d19dd67926446fb89a7b2dc0bda6353645b.zip external_llvm-9f9f6d19dd67926446fb89a7b2dc0bda6353645b.tar.gz external_llvm-9f9f6d19dd67926446fb89a7b2dc0bda6353645b.tar.bz2 |
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')
-rw-r--r-- | include/llvm/Support/Timer.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/include/llvm/Support/Timer.h b/include/llvm/Support/Timer.h index aba3150..2997a87 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: |