diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-08-14 06:07:57 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-08-14 06:07:57 +0000 |
commit | 1d3fa21cdd115b48241ff031f01e6b489b077abf (patch) | |
tree | 6b7b5d0c1eb585d8f8e911bf9a633c9f528c4fee /include | |
parent | e69f72758bbf652673edffd0f3bfdce77641e472 (diff) | |
download | llvm-1d3fa21cdd115b48241ff031f01e6b489b077abf.tar.gz llvm-1d3fa21cdd115b48241ff031f01e6b489b077abf.tar.bz2 llvm-1d3fa21cdd115b48241ff031f01e6b489b077abf.tar.xz |
Add new method to FunctionPassManager to add ImmutablePasses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7838 91177308-0d34-0410-b5e6-96231b3b80d8
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. |