Append to the ActiveTimers std::vector before looking at the timer instead
authorDan Gohman <gohman@apple.com>
Tue, 24 Jun 2008 22:07:07 +0000 (22:07 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 24 Jun 2008 22:07:07 +0000 (22:07 +0000)
commit153d28a414d087cbe20d17329fed358f7fa1258b
tree1700fd9cd23d9cef1c8300c59a38ad0e937af467
parent4a103e6d7ee5a69a80063d10d64f81829fbc9a73
Append to the ActiveTimers std::vector before looking at the timer instead
of after, so that any reallocation it does doesn't get counted for the pass
being timed.  This probably doesn't account for a timing discrepancy I was
looking into, but I'm fixing it anyway.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52693 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/Timer.cpp