diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-05-04 04:22:29 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-05-04 04:22:29 +0000 |
commit | 6191aec8fc1d29c8ae26520e277d4978ea81b48a (patch) | |
tree | bb05f293e0b966436987d2dcd00c72322e68c32f /src/cxa_personality.cpp | |
parent | 81681aed99a11d4c3080a5aefd5e4be8e79f05ac (diff) | |
download | libcxxabi-6191aec8fc1d29c8ae26520e277d4978ea81b48a.tar.gz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@268477 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/cxa_personality.cpp')
-rw-r--r-- | src/cxa_personality.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cxa_personality.cpp b/src/cxa_personality.cpp index 63adf31..f3e0aeb 100644 --- a/src/cxa_personality.cpp +++ b/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) |