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
This commit is contained in:
Greg Clayton
2010-11-05 23:17:00 +00:00
parent 2db0ea03ba
commit efabb123af
50 changed files with 585 additions and 146 deletions

View File

@@ -29,6 +29,19 @@ SBCompileUnit::SBCompileUnit (lldb_private::CompileUnit *lldb_object_ptr) :
{
}
SBCompileUnit::SBCompileUnit(const SBCompileUnit &rhs) :
m_opaque_ptr (rhs.m_opaque_ptr)
{
}
const SBCompileUnit &
SBCompileUnit::operator = (const SBCompileUnit &rhs)
{
m_opaque_ptr = rhs.m_opaque_ptr;
return *this;
}
SBCompileUnit::~SBCompileUnit ()
{
m_opaque_ptr = NULL;