diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:09:23 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2018-07-28 11:09:23 +0000 |
commit | f73363f1dd94996356cefbf24388f561891acf0b (patch) | |
tree | e3c31248bdb36eaec5fd833490d4278162dba2a0 /source/Interpreter/CommandObjectScript.cpp | |
parent | 160ee69dd7ae18978f4068116777639ea98dc951 (diff) |
Notes
Diffstat (limited to 'source/Interpreter/CommandObjectScript.cpp')
-rw-r--r-- | source/Interpreter/CommandObjectScript.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/Interpreter/CommandObjectScript.cpp b/source/Interpreter/CommandObjectScript.cpp index 0891298c5ac09..fa1516df60c9e 100644 --- a/source/Interpreter/CommandObjectScript.cpp +++ b/source/Interpreter/CommandObjectScript.cpp @@ -18,10 +18,10 @@ #include "lldb/DataFormatters/DataVisualization.h" -#include "lldb/Interpreter/Args.h" #include "lldb/Interpreter/CommandInterpreter.h" #include "lldb/Interpreter/CommandReturnObject.h" #include "lldb/Interpreter/ScriptInterpreter.h" +#include "lldb/Utility/Args.h" using namespace lldb; using namespace lldb_private; @@ -40,7 +40,7 @@ CommandObjectScript::CommandObjectScript(CommandInterpreter &interpreter, CommandObjectScript::~CommandObjectScript() {} -bool CommandObjectScript::DoExecute(const char *command, +bool CommandObjectScript::DoExecute(llvm::StringRef command, CommandReturnObject &result) { #ifdef LLDB_DISABLE_PYTHON // if we ever support languages other than Python this simple #ifdef won't @@ -69,7 +69,7 @@ bool CommandObjectScript::DoExecute(const char *command, // for formatting.. make sure we keep up to // date with it - if (command == nullptr || command[0] == '\0') { + if (command.empty()) { script_interpreter->ExecuteInterpreterLoop(); result.SetStatus(eReturnStatusSuccessFinishNoResult); return result.Succeeded(); |