mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-03 07:38:57 +00:00
EHABI: mark some functions as exported
These are part of the EHABI specification and are exported to be available to users. Mark them as `_LIBUNWIND_EXPORT` like the rest of the unwind interfaces. llvm-svn: 287283
This commit is contained in:
parent
ac96f66add
commit
f27bfd256b
@ -245,11 +245,9 @@ decode_eht_entry(const uint32_t* data, size_t* off, size_t* len) {
|
||||
return data;
|
||||
}
|
||||
|
||||
_Unwind_Reason_Code _Unwind_VRS_Interpret(
|
||||
_Unwind_Context* context,
|
||||
const uint32_t* data,
|
||||
size_t offset,
|
||||
size_t len) {
|
||||
_LIBUNWIND_EXPORT _Unwind_Reason_Code
|
||||
_Unwind_VRS_Interpret(_Unwind_Context *context, const uint32_t *data,
|
||||
size_t offset, size_t len) {
|
||||
bool wrotePC = false;
|
||||
bool finish = false;
|
||||
while (offset < len && !finish) {
|
||||
@ -418,24 +416,21 @@ _Unwind_Reason_Code _Unwind_VRS_Interpret(
|
||||
return _URC_CONTINUE_UNWIND;
|
||||
}
|
||||
|
||||
extern "C" _Unwind_Reason_Code __aeabi_unwind_cpp_pr0(
|
||||
_Unwind_State state,
|
||||
_Unwind_Control_Block *ucbp,
|
||||
_Unwind_Context *context) {
|
||||
extern "C" _LIBUNWIND_EXPORT _Unwind_Reason_Code
|
||||
__aeabi_unwind_cpp_pr0(_Unwind_State state, _Unwind_Control_Block *ucbp,
|
||||
_Unwind_Context *context) {
|
||||
return unwindOneFrame(state, ucbp, context);
|
||||
}
|
||||
|
||||
extern "C" _Unwind_Reason_Code __aeabi_unwind_cpp_pr1(
|
||||
_Unwind_State state,
|
||||
_Unwind_Control_Block *ucbp,
|
||||
_Unwind_Context *context) {
|
||||
extern "C" _LIBUNWIND_EXPORT _Unwind_Reason_Code
|
||||
__aeabi_unwind_cpp_pr1(_Unwind_State state, _Unwind_Control_Block *ucbp,
|
||||
_Unwind_Context *context) {
|
||||
return unwindOneFrame(state, ucbp, context);
|
||||
}
|
||||
|
||||
extern "C" _Unwind_Reason_Code __aeabi_unwind_cpp_pr2(
|
||||
_Unwind_State state,
|
||||
_Unwind_Control_Block *ucbp,
|
||||
_Unwind_Context *context) {
|
||||
extern "C" _LIBUNWIND_EXPORT _Unwind_Reason_Code
|
||||
__aeabi_unwind_cpp_pr2(_Unwind_State state, _Unwind_Control_Block *ucbp,
|
||||
_Unwind_Context *context) {
|
||||
return unwindOneFrame(state, ucbp, context);
|
||||
}
|
||||
|
||||
@ -755,7 +750,7 @@ static uint64_t ValueAsBitPattern(_Unwind_VRS_DataRepresentation representation,
|
||||
return value;
|
||||
}
|
||||
|
||||
_Unwind_VRS_Result
|
||||
_LIBUNWIND_EXPORT _Unwind_VRS_Result
|
||||
_Unwind_VRS_Set(_Unwind_Context *context, _Unwind_VRS_RegClass regclass,
|
||||
uint32_t regno, _Unwind_VRS_DataRepresentation representation,
|
||||
void *valuep) {
|
||||
@ -867,12 +862,10 @@ _Unwind_VRS_Get_Internal(_Unwind_Context *context,
|
||||
_LIBUNWIND_ABORT("unsupported register class");
|
||||
}
|
||||
|
||||
_Unwind_VRS_Result _Unwind_VRS_Get(
|
||||
_Unwind_Context *context,
|
||||
_Unwind_VRS_RegClass regclass,
|
||||
uint32_t regno,
|
||||
_Unwind_VRS_DataRepresentation representation,
|
||||
void *valuep) {
|
||||
_LIBUNWIND_EXPORT _Unwind_VRS_Result
|
||||
_Unwind_VRS_Get(_Unwind_Context *context, _Unwind_VRS_RegClass regclass,
|
||||
uint32_t regno, _Unwind_VRS_DataRepresentation representation,
|
||||
void *valuep) {
|
||||
_Unwind_VRS_Result result =
|
||||
_Unwind_VRS_Get_Internal(context, regclass, regno, representation,
|
||||
valuep);
|
||||
|
Loading…
x
Reference in New Issue
Block a user