summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBModule.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-11-05 23:17:00 +0000
committerGreg Clayton <gclayton@apple.com>2010-11-05 23:17:00 +0000
commitefabb123aff69b36b3cd610ad9b98aafb6bc799d (patch)
tree94de36ae7b2cb915aded3ae58eee86c9e4b690c7 /lldb/source/API/SBModule.cpp
parent2db0ea03ba60111bcf417f1a12e8781425ec276a (diff)
Added copy constructors and assignment operators to all lldb::SB* classes
so we don't end up with weak exports with some compilers. llvm-svn: 118312
Diffstat (limited to 'lldb/source/API/SBModule.cpp')
-rw-r--r--lldb/source/API/SBModule.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/source/API/SBModule.cpp b/lldb/source/API/SBModule.cpp
index c6c2d751183c..a631412c09bc 100644
--- a/lldb/source/API/SBModule.cpp
+++ b/lldb/source/API/SBModule.cpp
@@ -30,6 +30,19 @@ SBModule::SBModule (const lldb::ModuleSP& module_sp) :
{
}
+SBModule::SBModule(const SBModule &rhs) :
+ m_opaque_sp (rhs.m_opaque_sp)
+{
+}
+
+const SBModule &
+SBModule::operator = (const SBModule &rhs)
+{
+ if (this != &rhs)
+ m_opaque_sp = rhs.m_opaque_sp;
+ return *this;
+}
+
SBModule::~SBModule ()
{
}