diff options
author | Juergen Ributzka <juergen@apple.com> | 2014-05-15 17:49:20 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2014-05-15 17:49:20 +0000 |
commit | 218bad2bc5292bec2a46d59e0f85d4c9fde05bf4 (patch) | |
tree | 5f08c8f8b084eef58e5627434499657006d527ee /lib/IR/LegacyPassManager.cpp | |
parent | fd76d8a72dac035a4e1963bc6fe635a3b688cfcd (diff) |
Revert "[PM] Add pass run listeners to the pass manager."
Revert the current implementation and C API. New implementation and C APIs are
in the works.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208904 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR/LegacyPassManager.cpp')
-rw-r--r-- | lib/IR/LegacyPassManager.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/IR/LegacyPassManager.cpp b/lib/IR/LegacyPassManager.cpp index aea29fdc5b0..b6d75b483f8 100644 --- a/lib/IR/LegacyPassManager.cpp +++ b/lib/IR/LegacyPassManager.cpp @@ -16,7 +16,6 @@ #include "llvm/IR/LegacyPassManager.h" #include "llvm/IR/LegacyPassManagers.h" #include "llvm/IR/LegacyPassNameParser.h" -#include "llvm/IR/LLVMContext.h" #include "llvm/IR/Module.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/Debug.h" @@ -1314,8 +1313,6 @@ bool BBPassManager::runOnFunction(Function &F) { TimeRegion PassTimer(getPassTimer(BP)); LocalChanged |= BP->runOnBasicBlock(*I); - - F.getContext().notifyPassRun(BP, F.getParent(), &F, &*I); } Changed |= LocalChanged; @@ -1554,8 +1551,6 @@ bool FPPassManager::runOnFunction(Function &F) { removeNotPreservedAnalysis(FP); recordAvailableAnalysis(FP); removeDeadPasses(FP, F.getName(), ON_FUNCTION_MSG); - - F.getContext().notifyPassRun(FP, F.getParent(), &F); } return Changed; } @@ -1635,8 +1630,6 @@ MPPassManager::runOnModule(Module &M) { removeNotPreservedAnalysis(MP); recordAvailableAnalysis(MP); removeDeadPasses(MP, M.getModuleIdentifier(), ON_MODULE_MSG); - - M.getContext().notifyPassRun(MP, &M); } // Finalize module passes |