57 lines · cpp
1//===-- ValueObjectConstResultCast.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-exception6//7//===----------------------------------------------------------------------===//8 9#include "lldb/ValueObject/ValueObjectConstResultCast.h"10 11namespace lldb_private {12class DataExtractor;13}14namespace lldb_private {15class Status;16}17namespace lldb_private {18class ValueObject;19}20 21using namespace lldb_private;22 23ValueObjectConstResultCast::ValueObjectConstResultCast(24 ValueObject &parent, ConstString name, const CompilerType &cast_type,25 lldb::addr_t live_address)26 : ValueObjectCast(parent, name, cast_type), m_impl(this, live_address) {27 m_name = name;28}29 30ValueObjectConstResultCast::~ValueObjectConstResultCast() = default;31 32lldb::ValueObjectSP ValueObjectConstResultCast::Dereference(Status &error) {33 return m_impl.Dereference(error);34}35 36lldb::ValueObjectSP ValueObjectConstResultCast::GetSyntheticChildAtOffset(37 uint32_t offset, const CompilerType &type, bool can_create,38 ConstString name_const_str) {39 return m_impl.GetSyntheticChildAtOffset(offset, type, can_create,40 name_const_str);41}42 43lldb::ValueObjectSP ValueObjectConstResultCast::AddressOf(Status &error) {44 return m_impl.AddressOf(error);45}46 47size_t ValueObjectConstResultCast::GetPointeeData(DataExtractor &data,48 uint32_t item_idx,49 uint32_t item_count) {50 return m_impl.GetPointeeData(data, item_idx, item_count);51}52 53lldb::ValueObjectSP54ValueObjectConstResultCast::DoCast(const CompilerType &compiler_type) {55 return m_impl.Cast(compiler_type);56}57