diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-14 22:27:00 -0800 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2020-01-14 22:28:49 -0800 |
commit | a6faf851f49c7d50e92b16ff9d2e7c02790dd0f8 (patch) | |
tree | a7ca6edf62dd994474e7607dd7d90d23b39aad28 /lldb/source/Commands/CommandObjectCommands.cpp | |
parent | c42116cc653ae1618cc49dab367d9f6addd8cfd9 (diff) | |
download | llvm-a6faf851f49c7d50e92b16ff9d2e7c02790dd0f8.zip llvm-a6faf851f49c7d50e92b16ff9d2e7c02790dd0f8.tar.gz llvm-a6faf851f49c7d50e92b16ff9d2e7c02790dd0f8.tar.bz2 |
[lldb/CommandInterpreter] Remove flag that's always true (NFC)
The 'asynchronously' argument to both GetLLDBCommandsFromIOHandler and
GetPythonCommandsFromIOHandler is true for all call sites. This commit
simplifies the API by dropping it and giving the baton a default
argument.
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectCommands.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp index 1796b6b..388db6f 100644 --- a/lldb/source/Commands/CommandObjectCommands.cpp +++ b/lldb/source/Commands/CommandObjectCommands.cpp @@ -1650,11 +1650,8 @@ protected: if (m_options.m_class_name.empty()) { if (m_options.m_funct_name.empty()) { m_interpreter.GetPythonCommandsFromIOHandler( - " ", // Prompt - *this, // IOHandlerDelegate - true, // Run IOHandler in async mode - nullptr); // Baton for the "io_handler" that will be passed back - // into our IOHandlerDelegate functions + " ", // Prompt + *this); // IOHandlerDelegate } else { CommandObjectSP new_cmd(new CommandObjectPythonFunction( m_interpreter, m_cmd_name, m_options.m_funct_name, |