Chris Lattner | 30fdc8d | 2010-06-08 16:52:24 +0000 | [diff] [blame] | 1 | //===-- ModuleChild.cpp -----------------------------------------*- C++ -*-===// |
| 2 | // |
| 3 | // The LLVM Compiler Infrastructure |
| 4 | // |
| 5 | // This file is distributed under the University of Illinois Open Source |
| 6 | // License. See LICENSE.TXT for details. |
| 7 | // |
| 8 | //===----------------------------------------------------------------------===// |
| 9 | |
| 10 | #include "lldb/Core/ModuleChild.h" |
| 11 | |
| 12 | using namespace lldb_private; |
| 13 | |
| 14 | ModuleChild::ModuleChild (Module* module) : |
| 15 | m_module(module) |
| 16 | { |
| 17 | } |
| 18 | |
| 19 | ModuleChild::ModuleChild (const ModuleChild& rhs) : |
| 20 | m_module(rhs.m_module) |
| 21 | { |
| 22 | } |
| 23 | |
| 24 | ModuleChild::~ModuleChild() |
| 25 | { |
| 26 | } |
| 27 | |
| 28 | const ModuleChild& |
| 29 | ModuleChild::operator= (const ModuleChild& rhs) |
| 30 | { |
| 31 | if (this != &rhs) |
| 32 | m_module = rhs.m_module; |
| 33 | return *this; |
| 34 | } |
| 35 | |
| 36 | Module * |
| 37 | ModuleChild::GetModule () |
| 38 | { |
| 39 | return m_module; |
| 40 | } |
| 41 | |
| 42 | Module * |
| 43 | ModuleChild::GetModule () const |
| 44 | { |
| 45 | return m_module; |
| 46 | } |
| 47 | |
| 48 | void |
| 49 | ModuleChild::SetModule (Module *module) |
| 50 | { |
| 51 | m_module = module; |
| 52 | } |