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 | bcbed0a549a9207292da3b14c6095943c9509227 (patch) | |
tree | d6e1ab4aba8e4a9a8f8393f03e85d2fedce17cbb /llvm/lib/IR/LLVMContext.cpp | |
parent | 332e1b1909a79655ddf4f2c6d777cc6839129cb1 (diff) | |
download | bcm5719-llvm-bcbed0a549a9207292da3b14c6095943c9509227.tar.gz bcm5719-llvm-bcbed0a549a9207292da3b14c6095943c9509227.zip |
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.
llvm-svn: 208904
Diffstat (limited to 'llvm/lib/IR/LLVMContext.cpp')
-rw-r--r-- | llvm/lib/IR/LLVMContext.cpp | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/llvm/lib/IR/LLVMContext.cpp b/llvm/lib/IR/LLVMContext.cpp index b2d3bc9061e..588e1217bd4 100644 --- a/llvm/lib/IR/LLVMContext.cpp +++ b/llvm/lib/IR/LLVMContext.cpp @@ -214,23 +214,3 @@ void LLVMContext::getMDKindNames(SmallVectorImpl<StringRef> &Names) const { E = pImpl->CustomMDKindNames.end(); I != E; ++I) Names[I->second] = I->first(); } - -//===----------------------------------------------------------------------===// -// Pass Run Listeners -//===----------------------------------------------------------------------===// -/// Notify that we finished running a pass. -void LLVMContext::notifyPassRun(Pass *P, Module *M, Function *F, BasicBlock *BB) -{ - pImpl->notifyPassRun(this, P, M, F, BB); -} -/// Register the given PassRunListener to receive notifyPassRun() callbacks -/// whenever a pass ran. The context will take ownership of the listener and -/// free it when the context is destroyed. -void LLVMContext::addRunListener(PassRunListener *L) { - pImpl->addRunListener(L); -} -/// Unregister a PassRunListener so that it no longer receives notifyPassRun() -/// callbacks. Remove and free the listener from the context. -void LLVMContext::removeRunListener(PassRunListener *L) { - pImpl->removeRunListener(L); -} |