diff options
author | Greg Clayton <gclayton@apple.com> | 2010-11-05 23:17:00 +0000 |
---|---|---|
committer | Greg Clayton <gclayton@apple.com> | 2010-11-05 23:17:00 +0000 |
commit | 538eb82a89a68dbc57251915080bd5152b333978 (patch) | |
tree | 024cd857282fbea709ccbd41fe66a4e7582c3c5a /source/API/SBCompileUnit.cpp | |
parent | 91a1dabac7ef4a1c8a60dbbb8340d33b7d25f863 (diff) |
Added copy constructors and assignment operators to all lldb::SB* classes
so we don't end up with weak exports with some compilers.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@118312 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'source/API/SBCompileUnit.cpp')
-rw-r--r-- | source/API/SBCompileUnit.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/source/API/SBCompileUnit.cpp b/source/API/SBCompileUnit.cpp index 395050758..a103fc371 100644 --- a/source/API/SBCompileUnit.cpp +++ b/source/API/SBCompileUnit.cpp @@ -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; |