A simple RAII based Delegate installer. Use this in a scope to install a delegate to the MachineFunction and reset it at the end of the scope.
Declared in <llvm/CodeGen/GlobalISel/GISelChangeObserver.h>
class RAIIDelegateInstaller;
| Name | Description |
|---|---|
RAIIDelegateInstaller [constructor] | Install Del as the MachineFunction delegate for this object's lifetime. |
~RAIIDelegateInstaller [destructor] | Restore the previous MachineFunction delegate. |