[lldb/CommandInterpreter] Add CommandInterpreterRunResult (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 1 May 2020 18:29:07 +0000 (11:29 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 1 May 2020 18:29:28 +0000 (11:29 -0700)
commit1bff0928f52b3d6602bae085c9590a1d807c2910
treea0fd6d2615a066919426bba9555af44b00ef5aed
parent5c86b08a6f62e67b0a6cbbee3f70a2b009daa857
[lldb/CommandInterpreter] Add CommandInterpreterRunResult (NFC)

This patch adds a new class CommandInterpreterRunResult which will be
backing the SBCommandInterpreterRunResult. It keeps track of the number
of errors as well as the result which is an enum, as proposed by Pavel
in D79120. The command interpreter now populates the results directly,
instead of its own member variables.

Differential revision: https://reviews.llvm.org/D79209
lldb/include/lldb/Interpreter/CommandInterpreter.h
lldb/include/lldb/lldb-enumerations.h
lldb/source/API/SBDebugger.cpp
lldb/source/Interpreter/CommandInterpreter.cpp