summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2016-03-25 20:30:10 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2016-03-25 20:30:10 +0000
commit3a61a4d10452a992e712be2646b7ecb003a86ddf (patch)
treec7522d8ced051717d3e9c593f9c811eb333dae49 /llvm/lib/Support
parent69632447b198448376d779de1ca790b4445c55cc (diff)
downloadbcm5719-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.cpp8
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__
OpenPOWER on IntegriCloud