diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/PassManager.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/PassManager.h b/include/llvm/PassManager.h index 5a313d5a6f..c30164b540 100644 --- a/include/llvm/PassManager.h +++ b/include/llvm/PassManager.h @@ -34,6 +34,7 @@ public: }; class FunctionPass; +class ImmutablePass; class Function; class FunctionPassManager { @@ -50,6 +51,11 @@ public: /// void add(FunctionPass *P); + /// add - ImmutablePasses are not FunctionPasses, so we have a + /// special hack to get them into a FunctionPassManager. + /// + void add(ImmutablePass *IP); + /// 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. |