diff options
author | Dan Gohman <gohman@apple.com> | 2009-09-27 23:38:27 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-09-27 23:38:27 +0000 |
commit | 27a8fb8a546ec5d39b057bfe2ee5c36a8e454f09 (patch) | |
tree | 4080b462e953636f5be51d3a1abeca7a2da5c887 /include/llvm/PassManagers.h | |
parent | c261df9fab0c95e2362b518d071ac2ec37d0a9df (diff) |
Extract the code for releasing a pass into a separate function, and
tidy it up a little.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82944 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassManagers.h')
-rw-r--r-- | include/llvm/PassManagers.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index 6a14b152bb..94d56e4757 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -285,10 +285,14 @@ public: /// Remove Analysis that is not preserved by the pass void removeNotPreservedAnalysis(Pass *P); - /// Remove dead passes + /// Remove dead passes used by P. void removeDeadPasses(Pass *P, const StringRef &Msg, enum PassDebuggingString); + /// Remove P. + void freePass(Pass *P, const StringRef &Msg, + enum PassDebuggingString); + /// Add pass P into the PassVector. Update /// AvailableAnalysis appropriately if ProcessAnalysis is true. void add(Pass *P, bool ProcessAnalysis = true); |