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/SBFunction.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lldb/source/API/SBFunction.cpp') diff --git a/lldb/source/API/SBFunction.cpp b/lldb/source/API/SBFunction.cpp index 34f879af709..79b7543517b 100644 --- a/lldb/source/API/SBFunction.cpp +++ b/lldb/source/API/SBFunction.cpp @@ -32,6 +32,18 @@ SBFunction::SBFunction (lldb_private::Function *lldb_object_ptr) : { } +SBFunction::SBFunction (const lldb::SBFunction &rhs) : + m_opaque_ptr (rhs.m_opaque_ptr) +{ +} + +const SBFunction & +SBFunction::operator = (const SBFunction &rhs) +{ + m_opaque_ptr = rhs.m_opaque_ptr; + return *this; +} + SBFunction::~SBFunction () { m_opaque_ptr = NULL; -- cgit v1.2.3