Path: blob/main/contrib/llvm-project/lldb/source/ValueObject/ValueObjectConstResultChild.cpp
213764 views
//===-- ValueObjectConstResultChild.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/ValueObject/ValueObjectConstResultChild.h"910#include "lldb/lldb-private-enumerations.h"11namespace lldb_private {12class DataExtractor;13}14namespace lldb_private {15class Status;16}17namespace lldb_private {18class ValueObject;19}2021using namespace lldb_private;2223ValueObjectConstResultChild::ValueObjectConstResultChild(24ValueObject &parent, const CompilerType &compiler_type, ConstString name,25uint32_t byte_size, int32_t byte_offset, uint32_t bitfield_bit_size,26uint32_t bitfield_bit_offset, bool is_base_class, bool is_deref_of_parent,27lldb::addr_t live_address, uint64_t language_flags)28: ValueObjectChild(parent, compiler_type, name, byte_size, byte_offset,29bitfield_bit_size, bitfield_bit_offset, is_base_class,30is_deref_of_parent, eAddressTypeLoad, language_flags),31m_impl(this, live_address) {32m_name = name;33}3435ValueObjectConstResultChild::~ValueObjectConstResultChild() = default;3637lldb::ValueObjectSP ValueObjectConstResultChild::Dereference(Status &error) {38return m_impl.Dereference(error);39}4041lldb::ValueObjectSP ValueObjectConstResultChild::GetSyntheticChildAtOffset(42uint32_t offset, const CompilerType &type, bool can_create,43ConstString name_const_str) {44return m_impl.GetSyntheticChildAtOffset(offset, type, can_create,45name_const_str);46}4748lldb::ValueObjectSP ValueObjectConstResultChild::AddressOf(Status &error) {49return m_impl.AddressOf(error);50}5152ValueObject::AddrAndType53ValueObjectConstResultChild::GetAddressOf(bool scalar_is_load_address) {54return m_impl.GetAddressOf(scalar_is_load_address);55}5657size_t ValueObjectConstResultChild::GetPointeeData(DataExtractor &data,58uint32_t item_idx,59uint32_t item_count) {60return m_impl.GetPointeeData(data, item_idx, item_count);61}6263lldb::ValueObjectSP64ValueObjectConstResultChild::DoCast(const CompilerType &compiler_type) {65return m_impl.Cast(compiler_type);66}676869