mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
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
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user