From: Aaron Ballman Date: Thu, 29 Jan 2015 20:48:34 +0000 (+0000) Subject: All signal handlers are required to have C language linkage in C++. This does not... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1b7b2597d5e9612795b14d50428d69e368b89d7a;p=oota-llvm.git All signal handlers are required to have C language linkage in C++. This does not fix all signal handlers, but does fix the most recent one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227490 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Windows/Signals.inc b/lib/Support/Windows/Signals.inc index f288db7c8b7..fa16aa58c7f 100644 --- a/lib/Support/Windows/Signals.inc +++ b/lib/Support/Windows/Signals.inc @@ -196,7 +196,7 @@ static int AvoidMessageBoxHook(int ReportType, char *Message, int *Return) { #endif -static void HandleAbort(int Sig) { +extern "C" void HandleAbort(int Sig) { if (Sig == SIGABRT) { LLVM_BUILTIN_TRAP; }