From d9225188449f0ed381b5e0806527daf77a229d42 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 28 Apr 2013 07:47:04 +0000 Subject: [PATCH] Inline variable into the #ifdef block where it's used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@180688 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Unix/Signals.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Support/Unix/Signals.inc b/lib/Support/Unix/Signals.inc index 60ff87644f3..fcb12e35340 100644 --- a/lib/Support/Unix/Signals.inc +++ b/lib/Support/Unix/Signals.inc @@ -292,9 +292,9 @@ void llvm::sys::PrintStackTrace(FILE *FD) { (int)(sizeof(void*) * 2) + 2, (unsigned long)StackTrace[i]); if (dlinfo.dli_sname != NULL) { - int res; fputc(' ', FD); # if HAVE_CXXABI_H + int res; char* d = abi::__cxa_demangle(dlinfo.dli_sname, NULL, NULL, &res); # else char* d = NULL; -- 2.11.0