Path: blob/main/contrib/llvm-project/lldb/source/Core/ValueObjectConstResultCast.cpp
39587 views
//===-- ValueObjectConstResultCast.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/ValueObjectConstResultCast.h"910namespace lldb_private {11class DataExtractor;12}13namespace lldb_private {14class Status;15}16namespace lldb_private {17class ValueObject;18}1920using namespace lldb_private;2122ValueObjectConstResultCast::ValueObjectConstResultCast(23ValueObject &parent, ConstString name, const CompilerType &cast_type,24lldb::addr_t live_address)25: ValueObjectCast(parent, name, cast_type), m_impl(this, live_address) {26m_name = name;27}2829ValueObjectConstResultCast::~ValueObjectConstResultCast() = default;3031lldb::ValueObjectSP ValueObjectConstResultCast::Dereference(Status &error) {32return m_impl.Dereference(error);33}3435lldb::ValueObjectSP ValueObjectConstResultCast::GetSyntheticChildAtOffset(36uint32_t offset, const CompilerType &type, bool can_create,37ConstString name_const_str) {38return m_impl.GetSyntheticChildAtOffset(offset, type, can_create,39name_const_str);40}4142lldb::ValueObjectSP ValueObjectConstResultCast::AddressOf(Status &error) {43return m_impl.AddressOf(error);44}4546size_t ValueObjectConstResultCast::GetPointeeData(DataExtractor &data,47uint32_t item_idx,48uint32_t item_count) {49return m_impl.GetPointeeData(data, item_idx, item_count);50}5152lldb::ValueObjectSP53ValueObjectConstResultCast::DoCast(const CompilerType &compiler_type) {54return m_impl.Cast(compiler_type);55}565758