summaryrefslogtreecommitdiffstats
path: root/lldb/source/Core/ModuleChild.cpp
blob: f38fb4f6c36ea735af0952b832964aace72055de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//===-- 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 (Module* module) :
    m_module(module)
{
}

ModuleChild::ModuleChild (const ModuleChild& rhs) :
    m_module(rhs.m_module)
{
}

ModuleChild::~ModuleChild()
{
}

const ModuleChild&
ModuleChild::operator= (const ModuleChild& rhs)
{
    if (this != &rhs)
        m_module = rhs.m_module;
    return *this;
}

Module *
ModuleChild::GetModule ()
{
    return m_module;
}

Module *
ModuleChild::GetModule () const
{
    return m_module;
}

void
ModuleChild::SetModule (Module *module)
{
    m_module = module;
}
OpenPOWER on IntegriCloud