diff options
| author | 2017-01-14 19:55:43 +0000 | |
|---|---|---|
| committer | 2017-01-14 19:55:43 +0000 | |
| commit | bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 (patch) | |
| tree | 309a8132b44564b9e634c0da6815187ce8eab27c /gnu/llvm/include/llvm/Support/CrashRecoveryContext.h | |
| parent | killp -a should not kill the window if only one pane. (diff) | |
| download | wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.tar.xz wireguard-openbsd-bd3306aecb3a15e8967143b8cdbbccf2b1b19b74.zip | |
Import LLVM 3.9.1 including clang and lld.
Diffstat (limited to 'gnu/llvm/include/llvm/Support/CrashRecoveryContext.h')
| -rw-r--r-- | gnu/llvm/include/llvm/Support/CrashRecoveryContext.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/gnu/llvm/include/llvm/Support/CrashRecoveryContext.h b/gnu/llvm/include/llvm/Support/CrashRecoveryContext.h index 1a1c7436876..6cbc331d273 100644 --- a/gnu/llvm/include/llvm/Support/CrashRecoveryContext.h +++ b/gnu/llvm/include/llvm/Support/CrashRecoveryContext.h @@ -11,7 +11,6 @@ #define LLVM_SUPPORT_CRASHRECOVERYCONTEXT_H #include "llvm/ADT/STLExtras.h" -#include <string> namespace llvm { class CrashRecoveryContextCleanup; @@ -70,8 +69,7 @@ public: /// \return True if the function completed successfully, and false if the /// function crashed (or HandleCrash was called explicitly). Clients should /// make as little assumptions as possible about the program state when - /// RunSafely has returned false. Clients can use getBacktrace() to retrieve - /// the backtrace of the crash on failures. + /// RunSafely has returned false. bool RunSafely(function_ref<void()> Fn); bool RunSafely(void (*Fn)(void*), void *UserData) { return RunSafely([&]() { Fn(UserData); }); @@ -94,13 +92,6 @@ public: /// \brief Explicitly trigger a crash recovery in the current process, and /// return failure from RunSafely(). This function does not return. void HandleCrash(); - - /// \brief Return a string containing the backtrace where the crash was - /// detected; or empty if the backtrace wasn't recovered. - /// - /// This function is only valid when a crash has been detected (i.e., - /// RunSafely() has returned false. - const std::string &getBacktrace() const; }; class CrashRecoveryContextCleanup { |
