summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-03-21 18:38:03 +0000
committerTed Kremenek <kremenek@apple.com>2011-03-21 18:38:03 +0000
commitb52fde4185cd724f51aae4018b0f8278732379c7 (patch)
tree98834506f641740212914dc73ee20eb982bb16fe /include
parent47f0f1856f189e9e0d9540bd3f82b26f77088a7d (diff)
downloadllvm-b52fde4185cd724f51aae4018b0f8278732379c7.tar.gz
llvm-b52fde4185cd724f51aae4018b0f8278732379c7.tar.bz2
llvm-b52fde4185cd724f51aae4018b0f8278732379c7.tar.xz
Provide a means for CrashRecovery clients to determine if code is currently running while crash recovery cleanups are being processed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/CrashRecoveryContext.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Support/CrashRecoveryContext.h b/include/llvm/Support/CrashRecoveryContext.h
index 6e975fe3a1..28b31f3a78 100644
--- a/include/llvm/Support/CrashRecoveryContext.h
+++ b/include/llvm/Support/CrashRecoveryContext.h
@@ -63,6 +63,10 @@ public:
/// thread which is in a protected context.
static CrashRecoveryContext *GetCurrent();
+ /// \brief Return true if the current thread is recovering from a
+ /// crash.
+ static bool isRecoveringFromCrash();
+
/// \brief Execute the provide callback function (with the given arguments) in
/// a protected context.
///