summaryrefslogtreecommitdiffstats
path: root/source/Core/ModuleChild.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/Core/ModuleChild.cpp')
-rw-r--r--source/Core/ModuleChild.cpp46
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;
+}
OpenPOWER on IntegriCloud