diff options
author | emaste <emaste@FreeBSD.org> | 2013-08-23 17:46:38 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2013-08-23 17:46:38 +0000 |
commit | dcd15f81789e389c1cb27d264fcdddfd0a6002bd (patch) | |
tree | f561dabc721ad515599172c16da3a4400b7f4aec /source/Core/ModuleChild.cpp | |
download | FreeBSD-src-dcd15f81789e389c1cb27d264fcdddfd0a6002bd.zip FreeBSD-src-dcd15f81789e389c1cb27d264fcdddfd0a6002bd.tar.gz |
Import lldb as of SVN r188801
(A number of files not required for the FreeBSD build have been removed.)
Sponsored by: DARPA, AFRL
Diffstat (limited to 'source/Core/ModuleChild.cpp')
-rw-r--r-- | source/Core/ModuleChild.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/source/Core/ModuleChild.cpp b/source/Core/ModuleChild.cpp new file mode 100644 index 0000000..9637fc3 --- /dev/null +++ b/source/Core/ModuleChild.cpp @@ -0,0 +1,46 @@ +//===-- ModuleChild.cpp -----------------------------------------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "lldb/Core/ModuleChild.h" + +using namespace lldb_private; + +ModuleChild::ModuleChild (const lldb::ModuleSP &module_sp) : + m_module_wp (module_sp) +{ +} + +ModuleChild::ModuleChild (const ModuleChild& rhs) : + m_module_wp(rhs.m_module_wp) +{ +} + +ModuleChild::~ModuleChild() +{ +} + +const ModuleChild& +ModuleChild::operator= (const ModuleChild& rhs) +{ + if (this != &rhs) + m_module_wp = rhs.m_module_wp; + return *this; +} + +lldb::ModuleSP +ModuleChild::GetModule () const +{ + return m_module_wp.lock(); +} + +void +ModuleChild::SetModule (const lldb::ModuleSP &module_sp) +{ + m_module_wp = module_sp; +} |