class CrashRecoveryContextCleanup

Declaration

class CrashRecoveryContextCleanup { /* full declaration omitted */ };

Description

Abstract base class of cleanup handlers. 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.

Declared at: llvm/include/llvm/Support/CrashRecoveryContext.h:127

Member Variables

protected llvm::CrashRecoveryContext* context = nullptr
public bool cleanupFired = false
private llvm::CrashRecoveryContextCleanup* prev = nullptr
private llvm::CrashRecoveryContextCleanup* next = nullptr

Method Overview

Methods

CrashRecoveryContextCleanup(
    llvm::CrashRecoveryContext* context)

Declared at: llvm/include/llvm/Support/CrashRecoveryContext.h:130

Parameters

llvm::CrashRecoveryContext* context

llvm::CrashRecoveryContext* getContext() const

Declared at: llvm/include/llvm/Support/CrashRecoveryContext.h:139

virtual void recoverResources()

Declared at: llvm/include/llvm/Support/CrashRecoveryContext.h:137

virtual ~CrashRecoveryContextCleanup()

Declared at: llvm/include/llvm/Support/CrashRecoveryContext.h:136