1 //===-- ModuleChild.cpp -----------------------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "lldb/Core/ModuleChild.h"
12 using namespace lldb_private;
14 ModuleChild::ModuleChild (const lldb::ModuleSP &module_sp) :
15 m_module_wp (module_sp)
19 ModuleChild::ModuleChild (const ModuleChild& rhs) :
20 m_module_wp(rhs.m_module_wp)
24 ModuleChild::~ModuleChild()
29 ModuleChild::operator= (const ModuleChild& rhs)
32 m_module_wp = rhs.m_module_wp;
37 ModuleChild::GetModule () const
39 return m_module_wp.lock();
43 ModuleChild::SetModule (const lldb::ModuleSP &module_sp)
45 m_module_wp = module_sp;