[llvm-commits] CVS: llvm/lib/VMCore/PassManagerT.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Oct 1 15:09:01 PDT 2002
Changes in directory llvm/lib/VMCore:
PassManagerT.h updated: 1.31 -> 1.32
---
Log message:
Make sure not to count the PassManager wrapers
---
Diffs of the changes:
Index: llvm/lib/VMCore/PassManagerT.h
diff -u llvm/lib/VMCore/PassManagerT.h:1.31 llvm/lib/VMCore/PassManagerT.h:1.32
--- llvm/lib/VMCore/PassManagerT.h:1.31 Tue Oct 1 14:54:07 2002
+++ llvm/lib/VMCore/PassManagerT.h Tue Oct 1 15:08:11 2002
@@ -97,12 +97,14 @@
}
void passStarted(Pass *P) {
+ if (dynamic_cast<AnalysisResolver*>(P)) return;
std::map<Pass*, Timer>::iterator I = TimingData.find(P);
if (I == TimingData.end())
I = TimingData.insert(std::make_pair(P, Timer(P->getPassName()))).first;
I->second.startTimer();
}
void passEnded(Pass *P) {
+ if (dynamic_cast<AnalysisResolver*>(P)) return;
std::map<Pass*, Timer>::iterator I = TimingData.find(P);
assert (I != TimingData.end() && "passStarted/passEnded not nested right!");
I->second.stopTimer();
More information about the llvm-commits
mailing list