/Users/buildslave/jenkins/workspace/coverage/llvm-project/lldb/source/Core/ModuleChild.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | //===-- ModuleChild.cpp ---------------------------------------------------===// |
2 | | // |
3 | | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | | // See https://llvm.org/LICENSE.txt for license information. |
5 | | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | | // |
7 | | //===----------------------------------------------------------------------===// |
8 | | |
9 | | #include "lldb/Core/ModuleChild.h" |
10 | | |
11 | | using namespace lldb_private; |
12 | | |
13 | | ModuleChild::ModuleChild(const lldb::ModuleSP &module_sp) |
14 | 2.37M | : m_module_wp(module_sp) {} |
15 | | |
16 | 2.27M | ModuleChild::~ModuleChild() = default; |
17 | | |
18 | 0 | const ModuleChild &ModuleChild::operator=(const ModuleChild &rhs) { |
19 | 0 | if (this != &rhs) |
20 | 0 | m_module_wp = rhs.m_module_wp; |
21 | 0 | return *this; |
22 | 0 | } |
23 | | |
24 | 42.5M | lldb::ModuleSP ModuleChild::GetModule() const { return m_module_wp.lock(); } |
25 | | |
26 | 0 | void ModuleChild::SetModule(const lldb::ModuleSP &module_sp) { |
27 | 0 | m_module_wp = module_sp; |
28 | 0 | } |