LLVM 20.0.0git
Public Member Functions | List of all members
llvm::CrashRecoveryContextDeleteCleanup< T > Class Template Reference

Cleanup handler that reclaims resource by calling 'delete' on it. More...

#include "llvm/Support/CrashRecoveryContext.h"

Inheritance diagram for llvm::CrashRecoveryContextDeleteCleanup< T >:
Inheritance graph
[legend]

Public Member Functions

 CrashRecoveryContextDeleteCleanup (CrashRecoveryContext *context, T *resource)
 
void recoverResources () override
 
- Public Member Functions inherited from llvm::CrashRecoveryContextCleanup
virtual ~CrashRecoveryContextCleanup ()
 
virtual void recoverResources ()=0
 
CrashRecoveryContextgetContext () const
 

Additional Inherited Members

- Static Public Member Functions inherited from llvm::CrashRecoveryContextCleanupBase< CrashRecoveryContextDeleteCleanup< T >, T >
static CrashRecoveryContextDeleteCleanup< T > * create (T *x)
 Creates cleanup handler.
 
- Public Attributes inherited from llvm::CrashRecoveryContextCleanup
bool cleanupFired = false
 
- Protected Member Functions inherited from llvm::CrashRecoveryContextCleanupBase< CrashRecoveryContextDeleteCleanup< T >, T >
 CrashRecoveryContextCleanupBase (CrashRecoveryContext *context, T *resource)
 
- Protected Member Functions inherited from llvm::CrashRecoveryContextCleanup
 CrashRecoveryContextCleanup (CrashRecoveryContext *context)
 
- Protected Attributes inherited from llvm::CrashRecoveryContextCleanupBase< CrashRecoveryContextDeleteCleanup< T >, T >
Tresource
 
- Protected Attributes inherited from llvm::CrashRecoveryContextCleanup
CrashRecoveryContextcontext = nullptr
 

Detailed Description

template<typename T>
class llvm::CrashRecoveryContextDeleteCleanup< T >

Cleanup handler that reclaims resource by calling 'delete' on it.

Definition at line 197 of file CrashRecoveryContext.h.

Constructor & Destructor Documentation

◆ CrashRecoveryContextDeleteCleanup()

template<typename T >
llvm::CrashRecoveryContextDeleteCleanup< T >::CrashRecoveryContextDeleteCleanup ( CrashRecoveryContext context,
T resource 
)
inline

Definition at line 200 of file CrashRecoveryContext.h.

Member Function Documentation

◆ recoverResources()

template<typename T >
void llvm::CrashRecoveryContextDeleteCleanup< T >::recoverResources ( )
inlineoverridevirtual

The documentation for this class was generated from the following file: