[llvm] r227490 - 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.
    Aaron Ballman 
    aaron at aaronballman.com
       
    Thu Jan 29 12:48:35 PST 2015
    
    
  
Author: aaronballman
Date: Thu Jan 29 14:48:34 2015
New Revision: 227490
URL: http://llvm.org/viewvc/llvm-project?rev=227490&view=rev
Log:
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.
Modified:
    llvm/trunk/lib/Support/Windows/Signals.inc
Modified: llvm/trunk/lib/Support/Windows/Signals.inc
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Windows/Signals.inc?rev=227490&r1=227489&r2=227490&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Windows/Signals.inc (original)
+++ llvm/trunk/lib/Support/Windows/Signals.inc Thu Jan 29 14:48:34 2015
@@ -196,7 +196,7 @@ static int AvoidMessageBoxHook(int Repor
 
 #endif
 
-static void HandleAbort(int Sig) {
+extern "C" void HandleAbort(int Sig) {
   if (Sig == SIGABRT) {
     LLVM_BUILTIN_TRAP;
   }
    
    
More information about the llvm-commits
mailing list