diff options
| author | Pavel Labath <labath@google.com> | 2017-11-01 15:00:58 +0000 |
|---|---|---|
| committer | Pavel Labath <labath@google.com> | 2017-11-01 15:00:58 +0000 |
| commit | b38c02047aed02a2969960ce442ebdb84924929f (patch) | |
| tree | 1b5a5f499919b7d76987e001b01a27fb0ae2c932 /lldb/source/Utility/Status.cpp | |
| parent | 9dfbc10522017b5108ef22aedf62771fe7a22c5b (diff) | |
| download | bcm5719-llvm-b38c02047aed02a2969960ce442ebdb84924929f.tar.gz bcm5719-llvm-b38c02047aed02a2969960ce442ebdb84924929f.zip | |
Remove uint32_t assignment operator from Status
Summary:
It is not presently used, and it's quite dangerous to use -- it assumes the
integer is an osx kern_return_t, but very few of the integers we have lying
around are mach kernel error codes. The error can still be used to a
mach error using a slightly longer (but more explicit) syntax.
Reviewers: jingham
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D35305
llvm-svn: 317093
Diffstat (limited to 'lldb/source/Utility/Status.cpp')
| -rw-r--r-- | lldb/source/Utility/Status.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/lldb/source/Utility/Status.cpp b/lldb/source/Utility/Status.cpp index b11a3db64e6..a6a889a71e5 100644 --- a/lldb/source/Utility/Status.cpp +++ b/lldb/source/Utility/Status.cpp @@ -104,16 +104,6 @@ const Status &Status::operator=(const Status &rhs) { return *this; } -//---------------------------------------------------------------------- -// Assignment operator -//---------------------------------------------------------------------- -const Status &Status::operator=(uint32_t err) { - m_code = err; - m_type = eErrorTypeMachKernel; - m_string.clear(); - return *this; -} - Status::~Status() = default; //---------------------------------------------------------------------- |

