summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2007-01-29 23:29:54 +0000
committerDevang Patel <dpatel@apple.com>2007-01-29 23:29:54 +0000
commitb64c43361914b5e706863a700442d320484e36f5 (patch)
tree76566a60f8022a267997d046d7ec40923d71ef56 /llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
parent3f9f250928edbb3872e30ab22dc4c713eac28db2 (diff)
downloadbcm5719-llvm-b64c43361914b5e706863a700442d320484e36f5.tar.gz
bcm5719-llvm-b64c43361914b5e706863a700442d320484e36f5.zip
Use StartPassTimer() and StopPassManager()
llvm-svn: 33640
Diffstat (limited to 'llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp b/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
index 3876ec9adf8..ad3794aee9a 100644
--- a/llvm/lib/Analysis/IPA/CallGraphSCCPass.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud