Skip to content

Commit 74fe528

Browse files
committed
Fixups
1 parent 8d54ded commit 74fe528

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

libunwind/src/Registers.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,9 @@ inline const char *Registers_ppc64::getRegisterName(int regNum) {
18291829
class _LIBUNWIND_HIDDEN Registers_arm64;
18301830
extern "C" void __libunwind_Registers_arm64_jumpto(Registers_arm64 *);
18311831

1832-
#if !defined(__APPLE__)
1832+
#if defined(__APPLE__)
1833+
extern "C" void __attribute__((weak_import)) __arm_za_disable();
1834+
#else
18331835
extern "C" void __attribute__((weak)) __arm_za_disable();
18341836
#endif
18351837

@@ -1858,8 +1860,8 @@ class _LIBUNWIND_HIDDEN Registers_arm64 {
18581860
bool validVectorRegister(int num) const;
18591861
v128 getVectorRegister(int num) const;
18601862
void setVectorRegister(int num, v128 value);
1863+
void jumpto();
18611864
static const char *getRegisterName(int num);
1862-
void jumpto();
18631865
static constexpr int lastDwarfRegNum() {
18641866
return _LIBUNWIND_HIGHEST_DWARF_REGISTER_ARM64;
18651867
}
@@ -1975,8 +1977,7 @@ Registers_arm64::operator=(const Registers_arm64 &other) {
19751977
return *this;
19761978
}
19771979

1978-
void Registers_arm64::jumpto() {
1979-
#if !defined(__APPLE__)
1980+
inline void Registers_arm64::jumpto() {
19801981
// The platform must ensure that all the following conditions are true on
19811982
// entry to EH:
19821983
//
@@ -1997,7 +1998,6 @@ void Registers_arm64::jumpto() {
19971998
// abort.
19981999
_LIBUNWIND_DEBUG_LOG("failed to call __arm_za_disable in %s", __FUNCTION__);
19992000
}
2000-
#endif
20012001
__libunwind_Registers_arm64_jumpto(this);
20022002
}
20032003

0 commit comments

Comments
 (0)