aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/PassManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/PassManager.h')
-rw-r--r--include/llvm/PassManager.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/PassManager.h b/include/llvm/PassManager.h
index ae52f18224..f8ebd62ca6 100644
--- a/include/llvm/PassManager.h
+++ b/include/llvm/PassManager.h
@@ -135,6 +135,12 @@ public:
/// 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.
+ ///
+ bool run(Function &F);
+
/// doInitialization - Run all of the initializers for the function passes.
///
bool doInitialization();