1 //===-- ValueObjectConstResultCast.cpp --------------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "lldb/Core/ValueObjectConstResultCast.h"
12 namespace lldb_private {
15 namespace lldb_private {
18 namespace lldb_private {
22 using namespace lldb_private;
24 ValueObjectConstResultCast::ValueObjectConstResultCast(
25 ValueObject &parent, const ConstString &name, const CompilerType &cast_type,
26 lldb::addr_t live_address)
27 : ValueObjectCast(parent, name, cast_type), m_impl(this, live_address) {
31 ValueObjectConstResultCast::~ValueObjectConstResultCast() {}
33 lldb::ValueObjectSP ValueObjectConstResultCast::Dereference(Status &error) {
34 return m_impl.Dereference(error);
37 lldb::ValueObjectSP ValueObjectConstResultCast::GetSyntheticChildAtOffset(
38 uint32_t offset, const CompilerType &type, bool can_create,
39 ConstString name_const_str) {
40 return m_impl.GetSyntheticChildAtOffset(offset, type, can_create,
44 lldb::ValueObjectSP ValueObjectConstResultCast::AddressOf(Status &error) {
45 return m_impl.AddressOf(error);
48 ValueObject *ValueObjectConstResultCast::CreateChildAtIndex(
49 size_t idx, bool synthetic_array_member, int32_t synthetic_index) {
50 return m_impl.CreateChildAtIndex(idx, synthetic_array_member,
54 size_t ValueObjectConstResultCast::GetPointeeData(DataExtractor &data,
56 uint32_t item_count) {
57 return m_impl.GetPointeeData(data, item_idx, item_count);
61 ValueObjectConstResultCast::Cast(const CompilerType &compiler_type) {
62 return m_impl.Cast(compiler_type);