mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 13:35:38 +08:00
We can do better when reporting the status of one-liner script execution.
Change the prototype of ScriptInterpreter::ExecuteOneLine() to return bool instead of void and take one additional parameter as CommandReturnObject *. Propagate the status of one-liner execution back appropriately. llvm-svn: 109899
This commit is contained in:
@@ -25,10 +25,11 @@ ScriptInterpreterNone::~ScriptInterpreterNone ()
|
||||
{
|
||||
}
|
||||
|
||||
void
|
||||
ScriptInterpreterNone::ExecuteOneLine (CommandInterpreter &interpreter, const char *command)
|
||||
bool
|
||||
ScriptInterpreterNone::ExecuteOneLine (CommandInterpreter &interpreter, const char *command, CommandReturnObject *)
|
||||
{
|
||||
interpreter.GetDebugger().GetErrorStream().PutCString ("error: there is no embedded script interpreter in this mode.\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
Reference in New Issue
Block a user