From efabb123aff69b36b3cd610ad9b98aafb6bc799d Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 5 Nov 2010 23:17:00 +0000 Subject: 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 --- lldb/source/API/SBModule.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lldb/source/API/SBModule.cpp') 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 () { } -- cgit v1.2.3