aboutsummaryrefslogtreecommitdiff
path: root/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp')
-rw-r--r--contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp b/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp
index 8dee6b48453a..d36aeca21c69 100644
--- a/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp
+++ b/contrib/llvm-project/lldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp
@@ -39,6 +39,12 @@ ABIAArch64::GetEHAndDWARFNums(llvm::StringRef name) {
return MCBasedABI::GetEHAndDWARFNums(name);
}
+std::string ABIAArch64::GetMCName(std::string reg) {
+ MapRegisterName(reg, "v", "q");
+ MapRegisterName(reg, "x29", "fp");
+ MapRegisterName(reg, "x30", "lr");
+ return reg;
+}
uint32_t ABIAArch64::GetGenericNum(llvm::StringRef name) {
return llvm::StringSwitch<uint32_t>(name)
.Case("pc", LLDB_REGNUM_GENERIC_PC)