Skip to content

Commit e93de2c

Browse files
author
Davide Italiano
committed
[CommandObjectExpression] Remove swift-only option.
This is probably unused, only enabled under DEBUG, and in a central place [so it causes merge conflicts]. Another difference between llvm.org and github gone. apple-llvm-split-commit: 6ed66535891c7c873d505f547a6a6bbd3b2138c1 apple-llvm-split-dir: lldb/
1 parent d458deb commit e93de2c

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

lldb/source/Commands/CommandObjectExpression.cpp

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ void CommandObjectExpression::CommandOptions::OptionParsingStarting(
203203
try_all_threads = true;
204204
timeout = 0;
205205
debug = false;
206-
#ifdef LLDB_CONFIGURATION_DEBUG
207-
playground = false;
208-
#endif
209206
language = eLanguageTypeUnknown;
210207
m_verbosity = eLanguageRuntimeDescriptionDisplayVerbosityCompact;
211208
auto_apply_fixits = eLazyBoolCalculate;
@@ -229,11 +226,6 @@ CommandObjectExpression::CommandObjectExpression(
229226
m_option_group(), m_format_options(eFormatDefault),
230227
m_repl_option(LLDB_OPT_SET_1, false, "repl", 'r', "Drop into Swift REPL",
231228
false, true),
232-
#ifdef LLDB_CONFIGURATION_DEBUG
233-
m_playground_option(LLDB_OPT_SET_1, false, "playground", 'z',
234-
"Execute the expresssion as a playground expression",
235-
false, true),
236-
#endif
237229
m_command_options(), m_expr_line_count(0), m_expr_lines() {
238230
SetHelpLong(
239231
R"(
@@ -308,9 +300,6 @@ format."
308300
m_option_group.Append(&m_varobj_options, LLDB_OPT_SET_ALL,
309301
LLDB_OPT_SET_1 | LLDB_OPT_SET_2);
310302
m_option_group.Append(&m_repl_option, LLDB_OPT_SET_ALL, LLDB_OPT_SET_3);
311-
#ifdef LLDB_CONFIGURATION_DEBUG
312-
m_option_group.Append(&m_playground_option, LLDB_OPT_SET_ALL, LLDB_OPT_SET_1);
313-
#endif
314303
m_option_group.Finalize();
315304
}
316305

@@ -422,9 +411,6 @@ bool CommandObjectExpression::EvaluateExpression(llvm::StringRef expr,
422411
options.SetUseDynamic(m_varobj_options.use_dynamic);
423412
options.SetTryAllThreads(m_command_options.try_all_threads);
424413
options.SetDebug(m_command_options.debug);
425-
#ifdef LLDB_CONFIGURATION_DEBUG
426-
options.SetPlaygroundTransformEnabled(m_command_options.playground);
427-
#endif
428414

429415
// If the language was not specified in the expression command,
430416
// set it to the language in the target's properties if
@@ -656,11 +642,6 @@ bool CommandObjectExpression::DoExecute(llvm::StringRef command,
656642
if (!ParseOptionsAndNotify(args.GetArgs(), result, m_option_group, exe_ctx))
657643
return false;
658644

659-
#ifdef LLDB_CONFIGURATION_DEBUG
660-
m_command_options.playground =
661-
m_playground_option.GetOptionValue().GetCurrentValue();
662-
#endif
663-
664645
if (m_repl_option.GetOptionValue().GetCurrentValue()) {
665646
Target *target = m_interpreter.GetExecutionContext().GetTargetPtr();
666647

lldb/source/Commands/CommandObjectExpression.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ class CommandObjectExpression : public CommandObjectRaw,
4141
bool show_types;
4242
bool show_summary;
4343
bool debug;
44-
#ifdef LLDB_CONFIGURATION_DEBUG
45-
bool playground;
46-
#endif
4744
uint32_t timeout;
4845
bool try_all_threads;
4946
lldb::LanguageType language;
@@ -81,9 +78,6 @@ class CommandObjectExpression : public CommandObjectRaw,
8178
OptionGroupFormat m_format_options;
8279
OptionGroupValueObjectDisplay m_varobj_options;
8380
OptionGroupBoolean m_repl_option;
84-
#ifdef LLDB_CONFIGURATION_DEBUG
85-
OptionGroupBoolean m_playground_option;
86-
#endif
8781
CommandOptions m_command_options;
8882
uint32_t m_expr_line_count;
8983
std::string m_expr_lines; // Multi-line expression support

0 commit comments

Comments
 (0)