[llvm] r180688 - Inline variable into the #ifdef block where it's used.
Benjamin Kramer
benny.kra at googlemail.com
Sun Apr 28 00:47:04 PDT 2013
Author: d0k
Date: Sun Apr 28 02:47:04 2013
New Revision: 180688
URL: http://llvm.org/viewvc/llvm-project?rev=180688&view=rev
Log:
Inline variable into the #ifdef block where it's used.
Modified:
llvm/trunk/lib/Support/Unix/Signals.inc
Modified: llvm/trunk/lib/Support/Unix/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Unix/Signals.inc?rev=180688&r1=180687&r2=180688&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Unix/Signals.inc (original)
+++ llvm/trunk/lib/Support/Unix/Signals.inc Sun Apr 28 02:47:04 2013
@@ -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;
More information about the llvm-commits
mailing list