mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
During runOnModule() do initialization and finalization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32371 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
97856ceeab
commit
4d9a186b10
@ -840,13 +840,13 @@ FunctionPassManagerImpl_New::addPass(Pass *P) {
|
||||
/// the function, and if so, return true.
|
||||
bool FunctionPassManagerImpl_New::runOnModule(Module &M) {
|
||||
|
||||
bool Changed = false;
|
||||
bool Changed = doInitialization(M);
|
||||
initializeAnalysisInfo();
|
||||
|
||||
for (Module::iterator I = M.begin(), E = M.end(); I != E; ++I)
|
||||
this->runOnFunction(*I);
|
||||
|
||||
return Changed;
|
||||
return Changed | doFinalization(M);
|
||||
}
|
||||
|
||||
/// Execute all of the passes scheduled for execution by invoking
|
||||
|
Loading…
x
Reference in New Issue
Block a user