diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-26 18:12:44 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-26 18:12:44 +0000 |
commit | cb2380c9fa4be10aaee30d0a04fd9b354b922802 (patch) | |
tree | 989627356414cb6f2b1b65cc2c43cf5e43ce7fc4 /lldb/source/Commands/CommandObjectFrame.cpp | |
parent | 8679ef4e46a4d7b46a521a905d60357854117d43 (diff) | |
download | llvm-cb2380c9fa4be10aaee30d0a04fd9b354b922802.zip llvm-cb2380c9fa4be10aaee30d0a04fd9b354b922802.tar.gz llvm-cb2380c9fa4be10aaee30d0a04fd9b354b922802.tar.bz2 |
[lldb][NFC] Remove dead code that handles situations where LLDB has no dummy target
Summary:
We always have a dummy target, so any error handling regarding a missing dummy target is dead code now.
Also makes the CommandObject methods that return Target& to express this fact in the API.
This patch just for the CommandObject part of LLDB. I'll migrate the rest of LLDB in a follow-up patch that's WIP.
Reviewers: labath
Reviewed By: labath
Subscribers: abidh, lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D66737
llvm-svn: 369939
Diffstat (limited to 'lldb/source/Commands/CommandObjectFrame.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectFrame.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectFrame.cpp b/lldb/source/Commands/CommandObjectFrame.cpp index 4be72c5..e519780 100644 --- a/lldb/source/Commands/CommandObjectFrame.cpp +++ b/lldb/source/Commands/CommandObjectFrame.cpp @@ -713,11 +713,11 @@ protected: // Increment statistics. bool res = result.Succeeded(); - Target *target = GetSelectedOrDummyTarget(); + Target &target = GetSelectedOrDummyTarget(); if (res) - target->IncrementStats(StatisticKind::FrameVarSuccess); + target.IncrementStats(StatisticKind::FrameVarSuccess); else - target->IncrementStats(StatisticKind::FrameVarFailure); + target.IncrementStats(StatisticKind::FrameVarFailure); return res; } |