[llvm-commits] CVS: llvm/lib/VMCore/PassManager.cpp

Devang Patel dpatel at apple.com
Fri Dec 8 11:04:26 PST 2006



Changes in directory llvm/lib/VMCore:

PassManager.cpp updated: 1.62 -> 1.63
---
Log message:

During runOnModule() do initialization and finalization.


---
Diffs of the changes:  (+2 -2)

 PassManager.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/VMCore/PassManager.cpp
diff -u llvm/lib/VMCore/PassManager.cpp:1.62 llvm/lib/VMCore/PassManager.cpp:1.63
--- llvm/lib/VMCore/PassManager.cpp:1.62	Fri Dec  8 13:03:05 2006
+++ llvm/lib/VMCore/PassManager.cpp	Fri Dec  8 13:04:09 2006
@@ -840,13 +840,13 @@
 /// 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 






More information about the llvm-commits mailing list