File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1829,7 +1829,9 @@ inline const char *Registers_ppc64::getRegisterName(int regNum) {
18291829class _LIBUNWIND_HIDDEN Registers_arm64;
18301830extern " 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
18331835extern " 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
You can’t perform that action at this time.
0 commit comments