summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBThread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/API/SBThread.cpp')
-rw-r--r--lldb/source/API/SBThread.cpp26
1 files changed, 15 insertions, 11 deletions
diff --git a/lldb/source/API/SBThread.cpp b/lldb/source/API/SBThread.cpp
index fc13631b137..ca356244d78 100644
--- a/lldb/source/API/SBThread.cpp
+++ b/lldb/source/API/SBThread.cpp
@@ -38,14 +38,14 @@
using namespace lldb;
using namespace lldb_private;
+//----------------------------------------------------------------------
+// Constructors
+//----------------------------------------------------------------------
SBThread::SBThread () :
m_opaque_sp ()
{
}
-//----------------------------------------------------------------------
-// Thread constructor
-//----------------------------------------------------------------------
SBThread::SBThread (const ThreadSP& lldb_object_sp) :
m_opaque_sp (lldb_object_sp)
{
@@ -57,6 +57,18 @@ SBThread::SBThread (const SBThread &rhs) :
}
//----------------------------------------------------------------------
+// Assignment operator
+//----------------------------------------------------------------------
+
+const lldb::SBThread &
+SBThread::operator = (const SBThread &rhs)
+{
+ if (this != &rhs)
+ m_opaque_sp = rhs.m_opaque_sp;
+ return *this;
+}
+
+//----------------------------------------------------------------------
// Destructor
//----------------------------------------------------------------------
SBThread::~SBThread()
@@ -490,14 +502,6 @@ SBThread::GetFrameAtIndex (uint32_t idx)
return sb_frame;
}
-const lldb::SBThread &
-SBThread::operator = (const SBThread &rhs)
-{
- if (this != &rhs)
- m_opaque_sp = rhs.m_opaque_sp;
- return *this;
-}
-
bool
SBThread::operator == (const SBThread &rhs) const
{
OpenPOWER on IntegriCloud