diff options
author | Devang Patel <dpatel@apple.com> | 2006-12-08 01:38:28 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2006-12-08 01:38:28 +0000 |
commit | 3b14fbe300b96c353a9abfadf481b64324f17375 (patch) | |
tree | d2b93ba842808d1fe467c88c7a2cf911f93e8bba | |
parent | 964e45e60769ccdb4ee0230a179f84f37f6c371a (diff) | |
download | external_llvm-3b14fbe300b96c353a9abfadf481b64324f17375.zip external_llvm-3b14fbe300b96c353a9abfadf481b64324f17375.tar.gz external_llvm-3b14fbe300b96c353a9abfadf481b64324f17375.tar.bz2 |
BasicBlockPassManager_New::runOnFunction()
Do initialization and finalization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32346 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/PassManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index 1bc7872..45ffd42 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -649,7 +649,7 @@ BasicBlockPassManager_New::addPass(Pass *P) { bool BasicBlockPassManager_New::runOnFunction(Function &F) { - bool Changed = false; + bool Changed = doInitialization(F); initializeAnalysisInfo(); for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I) @@ -663,7 +663,7 @@ BasicBlockPassManager_New::runOnFunction(Function &F) { recordAvailableAnalysis(P); removeDeadPasses(P); } - return Changed; + return Changed | doFinalization(F); } /// Return true IFF AnalysisID AID is currently available. |