summaryrefslogtreecommitdiffstats
path: root/lib/Support/Unix
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2012-09-28 10:10:46 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2012-09-28 10:10:46 +0000
commit53347ed2f8b6a80a36b0450a13eaa44da983ac3d (patch)
tree6db349cbf408a3158281d196d216715d9df87107 /lib/Support/Unix
parentab16423c912a7baa73f36e9032365925914487a3 (diff)
downloadexternal_llvm-53347ed2f8b6a80a36b0450a13eaa44da983ac3d.zip
external_llvm-53347ed2f8b6a80a36b0450a13eaa44da983ac3d.tar.gz
external_llvm-53347ed2f8b6a80a36b0450a13eaa44da983ac3d.tar.bz2
Make backtraces work again with both the configure and cmake build.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164817 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/Unix')
-rw-r--r--lib/Support/Unix/Signals.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Support/Unix/Signals.inc b/lib/Support/Unix/Signals.inc
index 7d161a6..cf64fa8 100644
--- a/lib/Support/Unix/Signals.inc
+++ b/lib/Support/Unix/Signals.inc
@@ -243,7 +243,7 @@ void llvm::sys::AddSignalHandler(void (*FnPtr)(void *), void *Cookie) {
// On glibc systems we have the 'backtrace' function, which works nicely, but
// doesn't demangle symbols.
static void PrintStackTrace(void *) {
-#if defined(HAVE_BACKTRACE) && defined(ENABLE_BACKTRACE)
+#if defined(HAVE_BACKTRACE) && defined(ENABLE_BACKTRACES)
static void* StackTrace[256];
// Use backtrace() to output a backtrace on Linux systems with glibc.
int depth = backtrace(StackTrace,