diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-28 00:07:05 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-28 00:07:05 +0000 |
commit | 7265f0826dddbc1d46ad1df769a99fc81c4adfe3 (patch) | |
tree | 8336197f8626e6b21e83541178978e3fd8a80bae /include | |
parent | 609289558295a0f4a1f6529c14ffe96db547ec41 (diff) | |
download | external_llvm-7265f0826dddbc1d46ad1df769a99fc81c4adfe3.zip external_llvm-7265f0826dddbc1d46ad1df769a99fc81c4adfe3.tar.gz external_llvm-7265f0826dddbc1d46ad1df769a99fc81c4adfe3.tar.bz2 |
Extend the StartPassTimer and StopPassTimer functions so that the
code that stops the timer doesn't have to search to find the timer
object before it stops the timer. This avoids a lock acquisition
and a few other things done with the timer running.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82949 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/PassManagers.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index 94d56e4..a067294 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -95,6 +95,7 @@ namespace llvm { class Pass; class StringRef; class Value; + class Timer; /// FunctionPassManager and PassManager, two top level managers, serve /// as the public interface of pass manager infrastructure. @@ -460,8 +461,8 @@ public: } }; -extern void StartPassTimer(llvm::Pass *); -extern void StopPassTimer(llvm::Pass *); +extern Timer *StartPassTimer(Pass *); +extern void StopPassTimer(Pass *, Timer *); } |