LLVM 20.0.0git
|
A simple RAII based Delegate installer. More...
#include "llvm/CodeGen/GlobalISel/GISelChangeObserver.h"
Public Member Functions | |
RAIIDelegateInstaller (MachineFunction &MF, MachineFunction::Delegate *Del) | |
~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.
Definition at line 110 of file GISelChangeObserver.h.
RAIIDelegateInstaller::RAIIDelegateInstaller | ( | MachineFunction & | MF, |
MachineFunction::Delegate * | Del | ||
) |
Definition at line 32 of file GISelChangeObserver.cpp.
References llvm::MachineFunction::setDelegate().
RAIIDelegateInstaller::~RAIIDelegateInstaller | ( | ) |
Definition at line 40 of file GISelChangeObserver.cpp.
References llvm::MachineFunction::resetDelegate().