[#llvm-RAIIDelegateInstaller] = xref:llvm.adoc[llvm]::RAIIDelegateInstaller :relfileprefix: ../ :mrdocs: 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. == Synopsis Declared in `<llvm/CodeGen/GlobalISel/GISelChangeObserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class RAIIDelegateInstaller; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/RAIIDelegateInstaller/2constructor.adoc[`RAIIDelegateInstaller`] [.small]#[constructor]# | Install `Del` as the MachineFunction delegate for this object's lifetime. | xref:llvm/RAIIDelegateInstaller/2destructor.adoc[`~RAIIDelegateInstaller`] [.small]#[destructor]# | Restore the previous MachineFunction delegate. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#