llvm::CrashRecoveryContextCleanup

Abstract base class of cleanup handlers.

Synopsis

Declared in <llvm/Support/CrashRecoveryContext.h>

class CrashRecoveryContextCleanup;

Description

Derived classes override method recoverResources, which makes actual work on resource recovery.

Cleanup handlers are stored in a double list, which is owned and managed by a crash recovery context.

Member Functions

NameDescription
~CrashRecoveryContextCleanup [destructor] [virtual]Destroy the cleanup handler.
getContext Return the crash recovery context that owns this handler.
recoverResources [virtual]Reclaim the resource associated with this cleanup handler.

Data Members

NameDescription
cleanupFired Whether this cleanup has already been run.

Protected Member Functions

NameDescription
CrashRecoveryContextCleanup [constructor]Construct a cleanup handler bound to context.

Protected Data Members

NameDescription
context The crash recovery context that owns this cleanup handler.

Friends

NameDescription
llvm::CrashRecoveryContextCrash recovery helper object.

Derived Classes

NameDescription
CrashRecoveryContextCleanupBase Base class of cleanup handler that controls recovery of resources of the given type.