Revert "Return a named error in the result object of an expression with no result"
authorKrasimir Georgiev <krasimir@google.com>
Thu, 18 Oct 2018 03:10:43 +0000 (03:10 +0000)
committerKrasimir Georgiev <krasimir@google.com>
Thu, 18 Oct 2018 03:10:43 +0000 (03:10 +0000)
commita35912da9f44f7f3b885a4c1f567b1ac672978e1
tree8523c084b37d46a02ceb5a44af56be3e5b3ccfc9
parent11bc3a18e2baff1a17ba467208052a4e97c92300
Revert "Return a named error in the result object of an expression with no result"

This reverts commit r344647.
This causes build failures with [-Werror, -Wswitch]. Some cases where the newly
introduced enum value is not handled in particular are in:
  lldb/source/Expression/REPL.cpp:350
  lldb/source/Interpreter/CommandInterpreter.cpp:1529
(maybe there could be more)

As I don't understand lldb to make sure the likely trivial fixes are
correct and also as they might need additional tests, leaving to the
author to resolve.

llvm-svn: 344722
lldb/include/lldb/Expression/UserExpression.h
lldb/include/lldb/lldb-enumerations.h
lldb/packages/Python/lldbsuite/test/expression_command/no-result/Makefile [deleted file]
lldb/packages/Python/lldbsuite/test/expression_command/no-result/TestNoResult.py [deleted file]
lldb/packages/Python/lldbsuite/test/expression_command/no-result/main.c [deleted file]
lldb/source/Commands/CommandObjectExpression.cpp
lldb/source/Expression/ExpressionSourceCode.cpp
lldb/source/Expression/REPL.cpp
lldb/source/Expression/UserExpression.cpp
lldb/source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp