llvm::CrashRecoveryContextDestructorCleanup

Cleanup handler that reclaims resource by calling destructor on it.

Synopsis

Declared in <llvm/Support/CrashRecoveryContext.h>

template<typename T>
class CrashRecoveryContextDestructorCleanup
    : public CrashRecoveryContextCleanupBase<CrashRecoveryContextDestructorCleanup<T>, T>

Base Classes

NameDescription
CrashRecoveryContextCleanupBase<CrashRecoveryContextDestructorCleanup<T>, T>Base class of cleanup handler that controls recovery of resources of the given type.

Member Functions

NameDescription
CrashRecoveryContextDestructorCleanup [constructor]Construct a destructor-based cleanup for resource.
getContext Return the crash recovery context that owns this handler.
recoverResources Destroy the resource by invoking its destructor.

Static Member Functions

NameDescription
create Creates cleanup handler.

Data Members

NameDescription
cleanupFired Whether this cleanup has already been run.

Protected Data Members

NameDescription
context The crash recovery context that owns this cleanup handler.
resource Pointer to the resource recovered by this handler.