diff options
| author | Ed Maste <emaste@FreeBSD.org> | 2013-08-23 18:06:42 +0000 |
|---|---|---|
| committer | Ed Maste <emaste@FreeBSD.org> | 2013-08-23 18:06:42 +0000 |
| commit | ac7ddfbf72ce0012cf2944eeb05192d9d281fde1 (patch) | |
| tree | 05d762b98a499804ce690e6ce04033f1ddf4dee6 /contrib/llvm/tools/lldb/source/Core/ModuleChild.cpp | |
| parent | aa9a5cc05a9fad687997910ba3252e073231daf3 (diff) | |
| parent | f034231a6a1fd5d6395206c1651de8cd9402cca3 (diff) | |
Notes
Diffstat (limited to 'contrib/llvm/tools/lldb/source/Core/ModuleChild.cpp')
| -rw-r--r-- | contrib/llvm/tools/lldb/source/Core/ModuleChild.cpp | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/contrib/llvm/tools/lldb/source/Core/ModuleChild.cpp b/contrib/llvm/tools/lldb/source/Core/ModuleChild.cpp new file mode 100644 index 000000000000..9637fc3aedda --- /dev/null +++ b/contrib/llvm/tools/lldb/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; +} |
