LLVM 20.0.0git
|
A simple RAII based Observer installer. More...
#include "llvm/CodeGen/GlobalISel/GISelChangeObserver.h"
Public Member Functions | |
RAIITemporaryObserverInstaller (GISelObserverWrapper &Observers, GISelChangeObserver &TemporaryObserver) | |
~RAIITemporaryObserverInstaller () | |
A simple RAII based Observer installer.
Use this in a scope to install the Observer to the MachineFunction and reset it at the end of the scope.
Definition at line 144 of file GISelChangeObserver.h.
RAIITemporaryObserverInstaller::RAIITemporaryObserverInstaller | ( | GISelObserverWrapper & | Observers, |
GISelChangeObserver & | TemporaryObserver | ||
) |
Definition at line 50 of file GISelChangeObserver.cpp.
References llvm::GISelObserverWrapper::addObserver().
RAIITemporaryObserverInstaller::~RAIITemporaryObserverInstaller | ( | ) |
Definition at line 56 of file GISelChangeObserver.cpp.
References llvm::GISelObserverWrapper::removeObserver().