Use StartPassTimer() and StopPassManager()

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33640 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2007-01-29 23:29:54 +00:00
parent e078d1a14a
commit f5b17fd938

View File

@ -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);