Lines Matching defs:CrashRecoveryContext
1 //===--- CrashRecoveryContext.cpp - Crash Recovery ------------------------===//
10 #include "llvm/Support/CrashRecoveryContext.h"
29 // per CrashRecoveryContext and CurrentContext is a thread-local, so only one
33 CrashRecoveryContext *CRC;
40 CrashRecoveryContextImpl(CrashRecoveryContext *CRC) : CRC(CRC),
79 static ManagedStatic<sys::ThreadLocal<const CrashRecoveryContext>>
84 CrashRecoveryContext::~CrashRecoveryContext() {
87 const CrashRecoveryContext *PC = tlIsRecoveringFromCrash->get();
102 bool CrashRecoveryContext::isRecoveringFromCrash() {
106 CrashRecoveryContext *CrashRecoveryContext::GetCurrent() {
117 void CrashRecoveryContext::registerCleanup(CrashRecoveryContextCleanup *cleanup)
128 CrashRecoveryContext::unregisterCleanup(CrashRecoveryContextCleanup *cleanup) {
174 CrashRecoveryContext::Disable();
191 // CrashRecoveryContext at all. So we make use of a thread-local
196 void CrashRecoveryContext::Enable() {
212 void CrashRecoveryContext::Disable() {
265 CrashRecoveryContext::Disable();
282 void CrashRecoveryContext::Enable() {
301 void CrashRecoveryContext::Disable() {
316 bool CrashRecoveryContext::RunSafely(function_ref<void()> Fn) {
332 void CrashRecoveryContext::HandleCrash() {
338 const std::string &CrashRecoveryContext::getBacktrace() const {
363 CrashRecoveryContext *CRC;
378 bool CrashRecoveryContext::RunSafelyOnThread(function_ref<void()> Fn,