aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-23 05:46:22 +0000
committerChris Lattner <sabre@nondot.org>2002-01-23 05:46:22 +0000
commit80fceef49b4bd5ef8b0fa5f68cd83339d91d81d4 (patch)
treee50618dac724cdfaab3aceba08f0a9c254647371
parentc7acf81519ea0d1d6a68862cca58060baa7b0934 (diff)
Pull run() into Pass.cpp
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1552 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Pass.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h
index 06f0b746ac..08899eda0e 100644
--- a/include/llvm/Pass.h
+++ b/include/llvm/Pass.h
@@ -136,13 +136,9 @@ public:
PassManager() : Batcher(0) {}
~PassManager();
- bool run(Module *M) {
- bool MadeChanges = false;
- // Run all of the pass initializers
- for (unsigned i = 0, e = Passes.size(); i < e; ++i)
- MadeChanges |= Passes[i]->run(M);
- return MadeChanges;
- }
+ // run - Run all of the queued passes on the specified module in an optimal
+ // way.
+ bool run(Module *M);
// add - Add a pass to the queue of passes to run. This passes ownership of
// the Pass to the PassManager. When the PassManager is destroyed, the pass