1 //===-- ValueObjectConstResultCast.cpp ------------------------------------===//
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-exception
7 //===----------------------------------------------------------------------===//
9 #include "lldb/Core/ValueObjectConstResultCast.h"
11 namespace lldb_private
{
14 namespace lldb_private
{
17 namespace lldb_private
{
21 using namespace lldb_private
;
23 ValueObjectConstResultCast::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
) {
30 ValueObjectConstResultCast::~ValueObjectConstResultCast() = default;
32 lldb::ValueObjectSP
ValueObjectConstResultCast::Dereference(Status
&error
) {
33 return m_impl
.Dereference(error
);
36 lldb::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
,
43 lldb::ValueObjectSP
ValueObjectConstResultCast::AddressOf(Status
&error
) {
44 return m_impl
.AddressOf(error
);
47 ValueObject
*ValueObjectConstResultCast::CreateChildAtIndex(
48 size_t idx
, bool synthetic_array_member
, int32_t synthetic_index
) {
49 return m_impl
.CreateChildAtIndex(idx
, synthetic_array_member
,
53 size_t ValueObjectConstResultCast::GetPointeeData(DataExtractor
&data
,
55 uint32_t item_count
) {
56 return m_impl
.GetPointeeData(data
, item_idx
, item_count
);
60 ValueObjectConstResultCast::DoCast(const CompilerType
&compiler_type
) {
61 return m_impl
.Cast(compiler_type
);