diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-03-25 20:30:10 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-03-25 20:30:10 +0000 |
commit | 3a61a4d10452a992e712be2646b7ecb003a86ddf (patch) | |
tree | c7522d8ced051717d3e9c593f9c811eb333dae49 /llvm/lib/Support | |
parent | 69632447b198448376d779de1ca790b4445c55cc (diff) | |
download | bcm5719-llvm-3a61a4d10452a992e712be2646b7ecb003a86ddf.tar.gz bcm5719-llvm-3a61a4d10452a992e712be2646b7ecb003a86ddf.zip |
Remove useless and unused CrashRecoveryContext::getBacktrace(). This function always returned an empty string.
llvm-svn: 264458
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/CrashRecoveryContext.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Support/CrashRecoveryContext.cpp b/llvm/lib/Support/CrashRecoveryContext.cpp index 3f4ef9da48f..98865f5e065 100644 --- a/llvm/lib/Support/CrashRecoveryContext.cpp +++ b/llvm/lib/Support/CrashRecoveryContext.cpp @@ -31,7 +31,6 @@ struct CrashRecoveryContextImpl { const CrashRecoveryContextImpl *Next; CrashRecoveryContext *CRC; - std::string Backtrace; ::jmp_buf JumpBuffer; volatile unsigned Failed : 1; unsigned SwitchedThread : 1; @@ -335,13 +334,6 @@ void CrashRecoveryContext::HandleCrash() { CRCI->HandleCrash(); } -const std::string &CrashRecoveryContext::getBacktrace() const { - CrashRecoveryContextImpl *CRC = (CrashRecoveryContextImpl *) Impl; - assert(CRC && "Crash recovery context never initialized!"); - assert(CRC->Failed && "No crash was detected!"); - return CRC->Backtrace; -} - // FIXME: Portability. static void setThreadBackgroundPriority() { #ifdef __APPLE__ |