summaryrefslogtreecommitdiffstats
path: root/lldb/tools
diff options
context:
space:
mode:
authorAlexander Polyakov <polyakov.alx@gmail.com>2018-06-15 20:20:39 +0000
committerAlexander Polyakov <polyakov.alx@gmail.com>2018-06-15 20:20:39 +0000
commit56d9aa26abeb50ddb0bafd041b5145a82301525c (patch)
tree6dce77f7fd8f19bd5b0c7347e7052ef398c09fea /lldb/tools
parent5f11e128b0aabb3188e3c09e089c284b9e401f87 (diff)
downloadbcm5719-llvm-56d9aa26abeb50ddb0bafd041b5145a82301525c.tar.gz
bcm5719-llvm-56d9aa26abeb50ddb0bafd041b5145a82301525c.zip
Revert "[lldb-mi] Add overload method for setting an error"
Summary: This reverts commit r334245 because it duplicates functionality of Status::AsCString used in SBError. Reviewers: aprantl, clayborg Reviewed By: clayborg Subscribers: lldb-commits, ki.stfu Differential Revision: https://reviews.llvm.org/D48212 llvm-svn: 334860
Diffstat (limited to 'lldb/tools')
-rw-r--r--lldb/tools/lldb-mi/MICmdBase.cpp17
-rw-r--r--lldb/tools/lldb-mi/MICmdBase.h3
2 files changed, 0 insertions, 20 deletions
diff --git a/lldb/tools/lldb-mi/MICmdBase.cpp b/lldb/tools/lldb-mi/MICmdBase.cpp
index d17e9cbc323..cd5bf27c73f 100644
--- a/lldb/tools/lldb-mi/MICmdBase.cpp
+++ b/lldb/tools/lldb-mi/MICmdBase.cpp
@@ -214,23 +214,6 @@ void CMICmdBase::SetError(const CMIUtilString &rErrMsg) {
//++
//------------------------------------------------------------------------------------
-// Details: Short cut function to enter error information into the command's
-// metadata object and set the command's error status.
-// Type: Method.
-// Args: error - (R) Command result description.
-// Return: None.
-// Throws: None.
-//--
-void CMICmdBase::SetError(const lldb::SBError &error) {
- const char *error_cstr = error.GetCString();
- if (error_cstr)
- SetError(error_cstr);
- else
- SetError("unknown error");
-}
-
-//++
-//------------------------------------------------------------------------------------
// Details: Ask a command to provide its unique identifier.
// Type: Method.
// Args: A unique identifier for this command class.
diff --git a/lldb/tools/lldb-mi/MICmdBase.h b/lldb/tools/lldb-mi/MICmdBase.h
index abb6f69ec4a..66f9fa6ee5d 100644
--- a/lldb/tools/lldb-mi/MICmdBase.h
+++ b/lldb/tools/lldb-mi/MICmdBase.h
@@ -12,8 +12,6 @@
// C Includes
// C++ Includes
// Other libraries and framework includes
-#include "lldb/API/SBError.h"
-
// Project includes
#include "MICmdArgSet.h"
#include "MICmdData.h"
@@ -82,7 +80,6 @@ public:
// Methods:
protected:
void SetError(const CMIUtilString &rErrMsg);
- void SetError(const lldb::SBError &error);
template <class T> T *GetOption(const CMIUtilString &vStrOptionName);
bool ParseValidateCmdOptions();
OpenPOWER on IntegriCloud