diff options
author | Devang Patel <dpatel@apple.com> | 2007-01-29 23:29:54 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-01-29 23:29:54 +0000 |
commit | f5b17fd938afe39a47ef5aef1b04cb6f437e3b98 (patch) | |
tree | ea3476b7367acbfea072979150ea7cb09db80650 | |
parent | e078d1a14a2633d5fe5b5b9d9dec90669f5c7082 (diff) |
Use StartPassTimer() and StopPassManager()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33640 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/IPA/CallGraphSCCPass.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/IPA/CallGraphSCCPass.cpp b/lib/Analysis/IPA/CallGraphSCCPass.cpp index 3876ec9adf..ad3794aee9 100644 --- a/lib/Analysis/IPA/CallGraphSCCPass.cpp +++ b/lib/Analysis/IPA/CallGraphSCCPass.cpp @@ -92,8 +92,7 @@ bool CGPassManager::runOnModule(Module &M) { initializeAnalysisImpl(P); - TimingInfo *TheTimeInfo = llvm::getTheTimeInfo(); - if (TheTimeInfo) TheTimeInfo->passStarted(P); + StartPassTimer(P); if (CallGraphSCCPass *CGSP = dynamic_cast<CallGraphSCCPass *>(P)) Changed |= CGSP->runOnSCC(*I); // TODO : What if CG is changed ? else { @@ -108,7 +107,7 @@ bool CGPassManager::runOnModule(Module &M) { Changed |= FPP->runOnFunction(*F); } } - if (TheTimeInfo) TheTimeInfo->passEnded(P); + StopPassTimer(P); if (Changed) dumpPassInfo(P, Msg3, Msg2); |