llvm::RAIIDelegateInstaller

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>

class RAIIDelegateInstaller;

Member Functions

NameDescription
RAIIDelegateInstaller [constructor]Install Del as the MachineFunction delegate for this object's lifetime.
~RAIIDelegateInstaller [destructor]Restore the previous MachineFunction delegate.