Path: blob/main/contrib/llvm-project/lldb/source/Core/ModuleChild.cpp
39587 views
//===-- ModuleChild.cpp ---------------------------------------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "lldb/Core/ModuleChild.h"910using namespace lldb_private;1112ModuleChild::ModuleChild(const lldb::ModuleSP &module_sp)13: m_module_wp(module_sp) {}1415ModuleChild::~ModuleChild() = default;1617const ModuleChild &ModuleChild::operator=(const ModuleChild &rhs) {18if (this != &rhs)19m_module_wp = rhs.m_module_wp;20return *this;21}2223lldb::ModuleSP ModuleChild::GetModule() const { return m_module_wp.lock(); }2425void ModuleChild::SetModule(const lldb::ModuleSP &module_sp) {26m_module_wp = module_sp;27}282930