BasicBlockPassManager_New::runOnFunction()

Do initialization and finalization.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32346 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2006-12-08 01:38:28 +00:00
parent 964e45e607
commit 3b14fbe300

View File

@ -649,7 +649,7 @@ BasicBlockPassManager_New::addPass(Pass *P) {
bool bool
BasicBlockPassManager_New::runOnFunction(Function &F) { BasicBlockPassManager_New::runOnFunction(Function &F) {
bool Changed = false; bool Changed = doInitialization(F);
initializeAnalysisInfo(); initializeAnalysisInfo();
for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I) for (Function::iterator I = F.begin(), E = F.end(); I != E; ++I)
@ -663,7 +663,7 @@ BasicBlockPassManager_New::runOnFunction(Function &F) {
recordAvailableAnalysis(P); recordAvailableAnalysis(P);
removeDeadPasses(P); removeDeadPasses(P);
} }
return Changed; return Changed | doFinalization(F);
} }
/// Return true IFF AnalysisID AID is currently available. /// Return true IFF AnalysisID AID is currently available.