diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-10-18 01:49:48 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-10-18 01:49:48 +0000 |
| commit | 487374cffb05da835bcd53cca4cf8b501454540d (patch) | |
| tree | 2f40d11c39a630433c4a2a900a9471588daf6462 /llvm | |
| parent | ee6e199f0efd82262106014815e8ca8a143c8645 (diff) | |
| download | bcm5719-llvm-487374cffb05da835bcd53cca4cf8b501454540d.tar.gz bcm5719-llvm-487374cffb05da835bcd53cca4cf8b501454540d.zip | |
Fix minor bug, update comments
llvm-svn: 875
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Transforms/Pass.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Transforms/Pass.h b/llvm/include/llvm/Transforms/Pass.h index 2fab0f17ccb..00f7979c14a 100644 --- a/llvm/include/llvm/Transforms/Pass.h +++ b/llvm/include/llvm/Transforms/Pass.h @@ -72,7 +72,7 @@ struct Pass { // run(Module*) - Run this pass on a module and all of the methods contained - // within it. Returns false on success. + // within it. Returns true if any of the contained passes returned true. // bool run(Module *M) { bool MadeChanges = doPassInitializationVirt(M); @@ -81,7 +81,7 @@ struct Pass { // the Module, so we have to keep checking for end of method list condition. // for (Module::iterator I = M->begin(); I != M->end(); ++I) - MadeChanges = doPerMethodWorkVirt(*I); + MadeChanges |= doPerMethodWorkVirt(*I); return MadeChanges; } @@ -101,12 +101,12 @@ struct Pass { inline virtual ~Pass() {} // doPassInitializationVirt - Virtual method overridden by subclasses to do - // any neccesary per-module initialization. Returns false on success. + // any neccesary per-module initialization. // virtual bool doPassInitializationVirt(Module *M) = 0; // doPerMethodWorkVirt - Virtual method overriden by subclasses to do the - // per-method processing of the pass. Returns false on success. + // per-method processing of the pass. // virtual bool doPerMethodWorkVirt(Method *M) = 0; }; |

