summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBCompileUnit.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/SBCompileUnit.cpp
parent2db0ea03ba60111bcf417f1a12e8781425ec276a (diff)
downloadbcm5719-llvm-efabb123aff69b36b3cd610ad9b98aafb6bc799d.tar.gz
bcm5719-llvm-efabb123aff69b36b3cd610ad9b98aafb6bc799d.zip
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/SBCompileUnit.cpp')
-rw-r--r--lldb/source/API/SBCompileUnit.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/lldb/source/API/SBCompileUnit.cpp b/lldb/source/API/SBCompileUnit.cpp
index 39505075847..a103fc37124 100644
--- a/lldb/source/API/SBCompileUnit.cpp
+++ b/lldb/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;
OpenPOWER on IntegriCloud