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 | efabb123aff69b36b3cd610ad9b98aafb6bc799d (patch) | |
tree | 94de36ae7b2cb915aded3ae58eee86c9e4b690c7 /lldb/source/API/SBCommandInterpreter.cpp | |
parent | 2db0ea03ba60111bcf417f1a12e8781425ec276a (diff) | |
download | bcm5719-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/SBCommandInterpreter.cpp')
-rw-r--r-- | lldb/source/API/SBCommandInterpreter.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp index d5ccd20e417..3f467f72f48 100644 --- a/lldb/source/API/SBCommandInterpreter.cpp +++ b/lldb/source/API/SBCommandInterpreter.cpp @@ -40,6 +40,18 @@ SBCommandInterpreter::SBCommandInterpreter (CommandInterpreter *interpreter) : " => SBCommandInterpreter(%p)", interpreter, m_opaque_ptr); } +SBCommandInterpreter::SBCommandInterpreter(const SBCommandInterpreter &rhs) : + m_opaque_ptr (rhs.m_opaque_ptr) +{ +} + +const SBCommandInterpreter & +SBCommandInterpreter::operator = (const SBCommandInterpreter &rhs) +{ + m_opaque_ptr = rhs.m_opaque_ptr; + return *this; +} + SBCommandInterpreter::~SBCommandInterpreter () { } |