diff options
author | Devang Patel <dpatel@apple.com> | 2007-03-05 18:20:51 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-03-05 18:20:51 +0000 |
commit | 7ebf09dbca688b31227183aab46b17c4f8a439cb (patch) | |
tree | 3534b7c0cbc3a7e3be7aa87e360716848f65d4d1 /llvm | |
parent | f10769dda7cd35ad257bfeedbcd4e8d13243133f (diff) | |
download | bcm5719-llvm-7ebf09dbca688b31227183aab46b17c4f8a439cb.tar.gz bcm5719-llvm-7ebf09dbca688b31227183aab46b17c4f8a439cb.zip |
Account for time consumed by releaseMemory() properly.
llvm-svn: 34932
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/VMCore/PassManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp index 470428f17b0..bca52973191 100644 --- a/llvm/lib/VMCore/PassManager.cpp +++ b/llvm/lib/VMCore/PassManager.cpp @@ -564,9 +564,9 @@ void PMDataManager::removeDeadPasses(Pass *P, std::string &Msg) { std::string Msg1 = " Freeing Pass '"; dumpPassInfo(*I, Msg1, Msg); - if (TheTimeInfo) TheTimeInfo->passStarted(P); + if (TheTimeInfo) TheTimeInfo->passStarted(*I); (*I)->releaseMemory(); - if (TheTimeInfo) TheTimeInfo->passEnded(P); + if (TheTimeInfo) TheTimeInfo->passEnded(*I); std::map<AnalysisID, Pass*>::iterator Pos = AvailableAnalysis.find((*I)->getPassInfo()); |