aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSettings.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-05-02 00:17:52 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2023-05-02 00:20:34 -0700
commitddd9358bcaef5a348dd387a6a27539f7f49646d1 (patch)
tree2a281d55bdbae8e0ad0132bdc59cd1d088ad9c0d /lldb/source/Commands/CommandObjectSettings.cpp
parent3c83afb68bb1818eb20e58ef163a779c54aa69f1 (diff)
downloadllvm-ddd9358bcaef5a348dd387a6a27539f7f49646d1.zip
llvm-ddd9358bcaef5a348dd387a6a27539f7f49646d1.tar.gz
llvm-ddd9358bcaef5a348dd387a6a27539f7f49646d1.tar.bz2
[lldb] Remove unused will_modify argument (NFC)
Various OptionValue related classes are passing around will_modify but the value is never used. This patch simplifies the interfaces by removing the redundant argument.
Diffstat (limited to 'lldb/source/Commands/CommandObjectSettings.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectSettings.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lldb/source/Commands/CommandObjectSettings.cpp b/lldb/source/Commands/CommandObjectSettings.cpp
index d658e13..a2ad87a 100644
--- a/lldb/source/Commands/CommandObjectSettings.cpp
+++ b/lldb/source/Commands/CommandObjectSettings.cpp
@@ -161,8 +161,8 @@ insert-before or insert-after.");
const char *setting_var_name =
request.GetParsedLine().GetArgumentAtIndex(setting_var_idx);
Status error;
- lldb::OptionValueSP value_sp(GetDebugger().GetPropertyValue(
- &m_exe_ctx, setting_var_name, false, error));
+ lldb::OptionValueSP value_sp(
+ GetDebugger().GetPropertyValue(&m_exe_ctx, setting_var_name, error));
if (!value_sp)
return;
value_sp->AutoComplete(m_interpreter, request);
@@ -520,7 +520,6 @@ protected:
bool DoExecute(Args &args, CommandReturnObject &result) override {
result.SetStatus(eReturnStatusSuccessFinishResult);
- const bool will_modify = false;
const size_t argc = args.GetArgumentCount();
if (argc > 0) {
const bool dump_qualified_name = true;
@@ -530,7 +529,7 @@ protected:
const Property *property =
GetDebugger().GetValueProperties()->GetPropertyAtPath(
- &m_exe_ctx, will_modify, property_path);
+ &m_exe_ctx, property_path);
if (property) {
property->DumpDescription(m_interpreter, result.GetOutputStream(), 0,