X-Git-Url: https://git.saurik.com/apple/ld64.git/blobdiff_plain/9543cb2f21e50a417dc8cf37eb7173f353536979..dd9e569f384b2c941bcc73d89d1468756788ee5b:/src/ld/parsers/libunwind/DwarfInstructions.hpp?ds=inline
diff --git a/src/ld/parsers/libunwind/DwarfInstructions.hpp b/src/ld/parsers/libunwind/DwarfInstructions.hpp
index a37c8a0..c14c38f 100644
--- a/src/ld/parsers/libunwind/DwarfInstructions.hpp
+++ b/src/ld/parsers/libunwind/DwarfInstructions.hpp
@@ -51,6 +51,7 @@
#define CFI_INVALID_ADDRESS ((pint_t)(-1))
+
namespace libunwind {
///
@@ -166,6 +167,14 @@ private:
const Registers_arm64&, const typename CFI_Parser::PrologInfo& prolog,
char warningBuffer[1024]);
+ // arm specific variants
+ static bool isReturnAddressRegister(int regNum, const Registers_arm&);
+ static pint_t getCFA(A& addressSpace, const typename CFI_Parser::PrologInfo& prolog, const Registers_arm&);
+ static compact_unwind_encoding_t encodeToUseDwarf(const Registers_arm&);
+ static compact_unwind_encoding_t createCompactEncodingFromProlog(A& addressSpace, pint_t funcAddr,
+ const Registers_arm&, const typename CFI_Parser::PrologInfo& prolog,
+ char warningBuffer[1024]);
+
};
@@ -1960,6 +1969,30 @@ compact_unwind_encoding_t DwarfInstructions::createCompactEncodingFromProlo
return encoding;
}
+
+
+
+//
+// arm specific functions
+//
+
+template
+compact_unwind_encoding_t DwarfInstructions::encodeToUseDwarf(const Registers_arm&)
+{
+ return UNWIND_ARM_MODE_DWARF;
+}
+
+
+template
+compact_unwind_encoding_t DwarfInstructions::createCompactEncodingFromProlog(A& addressSpace, pint_t funcAddr,
+ const Registers_arm& r, const typename CFI_Parser::PrologInfo& prolog,
+ char warningBuffer[1024])
+{
+ warningBuffer[0] = '\0';
+ return UNWIND_ARM_MODE_DWARF;
+}
+
+
} // namespace libunwind