aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Interpreter/CommandObject.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-11-09 15:25:59 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2020-11-09 15:42:27 -0800
commitb2fa3b922ecb219429ec7b839d15a06aedbc955a (patch)
tree266e4fc62625a1487f7620934bbc6b57fdf32d09 /lldb/source/Interpreter/CommandObject.cpp
parent554939583a122c48e8c3ffa1bff734b3ce963627 (diff)
downloadllvm-b2fa3b922ecb219429ec7b839d15a06aedbc955a.zip
llvm-b2fa3b922ecb219429ec7b839d15a06aedbc955a.tar.gz
llvm-b2fa3b922ecb219429ec7b839d15a06aedbc955a.tar.bz2
[lldb] Make GetSelectedOrDummyTarget return the target by reference (NFC)
Return references from GetDummyTarget and GetSelectedOrDummyTarget. This matches how the APIs are already used in practice.
Diffstat (limited to 'lldb/source/Interpreter/CommandObject.cpp')
-rw-r--r--lldb/source/Interpreter/CommandObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Interpreter/CommandObject.cpp b/lldb/source/Interpreter/CommandObject.cpp
index 58e54e8..7e89faa 100644
--- a/lldb/source/Interpreter/CommandObject.cpp
+++ b/lldb/source/Interpreter/CommandObject.cpp
@@ -930,11 +930,11 @@ const char *CommandObject::GetArgumentDescriptionAsCString(
}
Target &CommandObject::GetDummyTarget() {
- return *m_interpreter.GetDebugger().GetDummyTarget();
+ return m_interpreter.GetDebugger().GetDummyTarget();
}
Target &CommandObject::GetSelectedOrDummyTarget(bool prefer_dummy) {
- return *m_interpreter.GetDebugger().GetSelectedOrDummyTarget(prefer_dummy);
+ return m_interpreter.GetDebugger().GetSelectedOrDummyTarget(prefer_dummy);
}
Target &CommandObject::GetSelectedTarget() {