From: Devang Patel Date: Wed, 13 Dec 2006 00:34:32 +0000 (+0000) Subject: FunctionPassManager does not support runOnModule(). X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2db3a3bed789de582bd34558dc2c0d21a79f5a30;p=oota-llvm.git FunctionPassManager does not support runOnModule(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32519 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/PassManager.h b/include/llvm/PassManager.h index 81c7fd62221..1f0fa1acd1d 100644 --- a/include/llvm/PassManager.h +++ b/include/llvm/PassManager.h @@ -131,11 +131,6 @@ public: /// This implies that all passes MUST be allocated with 'new'. void add(Pass *P); - /// Execute all of the passes scheduled for execution. Keep - /// track of whether any of the passes modifies the function, and if - /// so, return true. - bool runOnModule(Module &M); - /// run - Execute all of the passes scheduled for execution. Keep /// track of whether any of the passes modifies the function, and if /// so, return true. diff --git a/lib/VMCore/PassManager.cpp b/lib/VMCore/PassManager.cpp index e6f69c07a6a..c377a05abd3 100644 --- a/lib/VMCore/PassManager.cpp +++ b/lib/VMCore/PassManager.cpp @@ -945,13 +945,6 @@ void FunctionPassManager_New::add(Pass *P) { FPM->add(P); } -/// Execute all of the passes scheduled for execution. Keep -/// track of whether any of the passes modifies the function, and if -/// so, return true. -bool FunctionPassManager_New::runOnModule(Module &M) { - return FPM->runOnModule(M); -} - /// run - Execute all of the passes scheduled for execution. Keep /// track of whether any of the passes modifies the function, and if /// so, return true.