[runtime][llvmonlyexceptions] Fixed visibility of unhandled exception handler
authorAlexander Kyte <alexmkyte@fastmail.com>
Tue, 22 Sep 2015 03:35:45 +0000 (23:35 -0400)
committerZoltan Varga <vargaz@gmail.com>
Fri, 9 Oct 2015 02:43:19 +0000 (22:43 -0400)
mono/mini/mini-llvm-cpp.cpp
mono/mini/mini-llvm-cpp.h

index 4d6f1f781067356f3c7368f90a6bd870e49408ce..4d254aaa104df120ca5623d442915a69cd1cd061 100644 (file)
@@ -71,7 +71,7 @@ mono_llvm_cpp_rethrow_exception (gint32 *exc)
        throw exc;
 }
 
-void (*unhandled_exception)() = default_mono_llvm_unhandled_exception;
+static void (*unhandled_exception)() = default_mono_llvm_unhandled_exception;
 
 void
 mono_llvm_set_unhandled_exception_handler (void)
index 55d0f14c4e1199a78f7527b96ff1b7dc7cb3dc74..39be04ac932d6fb5a1af04400f4acdc1b44fbc56 100644 (file)
@@ -131,8 +131,6 @@ _Unwind_Reason_Code
 mono_debug_personality (int a, _Unwind_Action b,
        uint64_t c, struct _Unwind_Exception *d, struct _Unwind_Context *e);
 
-extern void (*unhandled_exception)();
-
 void
 mono_llvm_set_unhandled_exception_handler (void);