summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/Args.cpp
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2014-05-09 04:09:48 +0000
committerJason Molenda <jmolenda@apple.com>2014-05-09 04:09:48 +0000
commit2fc43a38213ed8dce70ccf16244c9800e38eae41 (patch)
tree3d841b7de1f2fabeb101d08c1e1e5a10d6d54923 /lldb/source/Interpreter/Args.cpp
parent3d7c778d6d25db3482ee468e4503796728129ce2 (diff)
downloadbcm5719-llvm-2fc43a38213ed8dce70ccf16244c9800e38eae41.tar.gz
bcm5719-llvm-2fc43a38213ed8dce70ccf16244c9800e38eae41.zip
Args::StringToGenericRegister will now accept "lr" as
another way to indicate that this register is a generic Return Address register (in addition to "ra") - this is used primarily by OperatingSystem plugins. Correctly annotate the UnwindPlan created by EmulateInstructionARM64 to indicate that it was not sourced from a compiler and it is valid at every instruction. <rdar://problem/16639754> llvm-svn: 208390
Diffstat (limited to 'lldb/source/Interpreter/Args.cpp')
-rw-r--r--lldb/source/Interpreter/Args.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/Args.cpp b/lldb/source/Interpreter/Args.cpp
index 5700b82f324..facddcd94c4 100644
--- a/lldb/source/Interpreter/Args.cpp
+++ b/lldb/source/Interpreter/Args.cpp
@@ -1155,7 +1155,7 @@ Args::StringToGenericRegister (const char *s)
return LLDB_REGNUM_GENERIC_SP;
else if (strcmp(s, "fp") == 0)
return LLDB_REGNUM_GENERIC_FP;
- else if (strcmp(s, "ra") == 0)
+ else if (strcmp(s, "ra") == 0 || strcmp(s, "lr") == 0)
return LLDB_REGNUM_GENERIC_RA;
else if (strcmp(s, "flags") == 0)
return LLDB_REGNUM_GENERIC_FLAGS;
OpenPOWER on IntegriCloud