Path: blob/main/contrib/llvm-project/lldb/source/Core/ValueObjectConstResultChild.cpp
39587 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/Core/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,25ConstString name, uint32_t byte_size, int32_t byte_offset,26uint32_t bitfield_bit_size, uint32_t bitfield_bit_offset,27bool is_base_class, bool is_deref_of_parent, lldb::addr_t live_address,28uint64_t language_flags)29: ValueObjectChild(parent, compiler_type, name, byte_size, byte_offset,30bitfield_bit_size, bitfield_bit_offset, is_base_class,31is_deref_of_parent, eAddressTypeLoad, language_flags),32m_impl(this, live_address) {33m_name = name;34}3536ValueObjectConstResultChild::~ValueObjectConstResultChild() = default;3738lldb::ValueObjectSP ValueObjectConstResultChild::Dereference(Status &error) {39return m_impl.Dereference(error);40}4142lldb::ValueObjectSP ValueObjectConstResultChild::GetSyntheticChildAtOffset(43uint32_t offset, const CompilerType &type, bool can_create,44ConstString name_const_str) {45return m_impl.GetSyntheticChildAtOffset(offset, type, can_create,46name_const_str);47}4849lldb::ValueObjectSP ValueObjectConstResultChild::AddressOf(Status &error) {50return m_impl.AddressOf(error);51}5253lldb::addr_t ValueObjectConstResultChild::GetAddressOf(54bool scalar_is_load_address, AddressType* address_type) {55return m_impl.GetAddressOf(scalar_is_load_address, address_type);56}5758size_t ValueObjectConstResultChild::GetPointeeData(DataExtractor &data,59uint32_t item_idx,60uint32_t item_count) {61return m_impl.GetPointeeData(data, item_idx, item_count);62}6364lldb::ValueObjectSP65ValueObjectConstResultChild::DoCast(const CompilerType &compiler_type) {66return m_impl.Cast(compiler_type);67}686970