From d97e1b8a49fa4e40b5558a151543de4b05f198e1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 23 Jan 2002 05:46:22 +0000 Subject: [PATCH] Pull run() into Pass.cpp llvm-svn: 1552 --- llvm/include/llvm/Pass.h | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/llvm/include/llvm/Pass.h b/llvm/include/llvm/Pass.h index 06f0b746ac61..08899eda0e73 100644 --- a/llvm/include/llvm/Pass.h +++ b/llvm/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