This revision was automatically updated to reflect the committed changes. Closed by commit rL317093: Remove uint32_t assignment operator from Status (authored by labath).
Repository: rL LLVM https://reviews.llvm.org/D35305 Files: lldb/trunk/include/lldb/Utility/Status.h lldb/trunk/source/Utility/Status.cpp Index: lldb/trunk/include/lldb/Utility/Status.h =================================================================== --- lldb/trunk/include/lldb/Utility/Status.h +++ lldb/trunk/include/lldb/Utility/Status.h @@ -88,19 +88,6 @@ //------------------------------------------------------------------ const Status &operator=(const Status &rhs); - //------------------------------------------------------------------ - /// Assignment operator from a kern_return_t. - /// - /// Sets the type to \c MachKernel and the error code to \a err. - /// - /// @param[in] err - /// A mach error code. - /// - /// @return - /// A const reference to this object. - //------------------------------------------------------------------ - const Status &operator=(uint32_t err); - ~Status(); // llvm::Error support Index: lldb/trunk/source/Utility/Status.cpp =================================================================== --- lldb/trunk/source/Utility/Status.cpp +++ lldb/trunk/source/Utility/Status.cpp @@ -104,16 +104,6 @@ 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; //----------------------------------------------------------------------
Index: lldb/trunk/include/lldb/Utility/Status.h =================================================================== --- lldb/trunk/include/lldb/Utility/Status.h +++ lldb/trunk/include/lldb/Utility/Status.h @@ -88,19 +88,6 @@ //------------------------------------------------------------------ const Status &operator=(const Status &rhs); - //------------------------------------------------------------------ - /// Assignment operator from a kern_return_t. - /// - /// Sets the type to \c MachKernel and the error code to \a err. - /// - /// @param[in] err - /// A mach error code. - /// - /// @return - /// A const reference to this object. - //------------------------------------------------------------------ - const Status &operator=(uint32_t err); - ~Status(); // llvm::Error support Index: lldb/trunk/source/Utility/Status.cpp =================================================================== --- lldb/trunk/source/Utility/Status.cpp +++ lldb/trunk/source/Utility/Status.cpp @@ -104,16 +104,6 @@ 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; //----------------------------------------------------------------------
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits