Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-05-04 07:22:29 +0300
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-05-04 07:22:29 +0300
commit7d5169b68d2bc08da91a85322d981cd469117060 (patch)
treee052edd83276cbe34dc1bcc8bd3e5709d52bdd18 /libcxxabi/src/cxa_personality.cpp
parent17da174b8b8368fabd5d4a4c7829465647ddb6bb (diff)
libc++abi: fix visibility of personalities
The personality routines need to be exposed to the users as the functions reference the personality routine to handle exceptions. llvm-svn: 268477
Diffstat (limited to 'libcxxabi/src/cxa_personality.cpp')
-rw-r--r--libcxxabi/src/cxa_personality.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcxxabi/src/cxa_personality.cpp b/libcxxabi/src/cxa_personality.cpp
index 63adf31f85ab..f3e0aeb53ebc 100644
--- a/libcxxabi/src/cxa_personality.cpp
+++ b/libcxxabi/src/cxa_personality.cpp
@@ -17,6 +17,7 @@
#include <string.h>
#include <typeinfo>
+#include "__cxxabi_config.h"
#include "config.h"
#include "cxa_exception.hpp"
#include "cxa_handlers.hpp"
@@ -928,7 +929,7 @@ _UA_CLEANUP_PHASE
*/
#if !LIBCXXABI_ARM_EHABI
-_Unwind_Reason_Code
+_LIBCXXABI_FUNC_VIS _Unwind_Reason_Code
#ifdef __USING_SJLJ_EXCEPTIONS__
__gxx_personality_sj0
#else
@@ -1059,7 +1060,7 @@ static void load_results_from_barrier_cache(scan_results& results,
results.ttypeIndex = (int64_t)(int32_t)unwind_exception->barrier_cache.bitpattern[4];
}
-extern "C" _Unwind_Reason_Code
+extern "C" _LIBCXXABI_FUNC_VIS _Unwind_Reason_Code
__gxx_personality_v0(_Unwind_State state,
_Unwind_Exception* unwind_exception,
_Unwind_Context* context)