blob: c04043264af105f46fcaaecb923e5c6404d99d50 [file] [log] [blame]
Siva Chandraf8877ef2015-07-16 01:47:12 +00001//===-- ValueObjectConstResultCast.cpp --------------------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9
10#include "lldb/Core/ValueObjectConstResultCast.h"
11
Zachary Turner2f3df612017-04-06 21:28:29 +000012namespace lldb_private {
13class DataExtractor;
14}
15namespace lldb_private {
Zachary Turner97206d52017-05-12 04:51:55 +000016class Status;
Zachary Turner2f3df612017-04-06 21:28:29 +000017}
18namespace lldb_private {
19class ValueObject;
20}
Siva Chandraf8877ef2015-07-16 01:47:12 +000021
22using namespace lldb_private;
23
24ValueObjectConstResultCast::ValueObjectConstResultCast(
Kate Stoneb9c1b512016-09-06 20:57:50 +000025 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) {
28 m_name = name;
Siva Chandraf8877ef2015-07-16 01:47:12 +000029}
30
Kate Stoneb9c1b512016-09-06 20:57:50 +000031ValueObjectConstResultCast::~ValueObjectConstResultCast() {}
32
Zachary Turner97206d52017-05-12 04:51:55 +000033lldb::ValueObjectSP ValueObjectConstResultCast::Dereference(Status &error) {
Kate Stoneb9c1b512016-09-06 20:57:50 +000034 return m_impl.Dereference(error);
35}
36
37lldb::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,
41 name_const_str);
42}
43
Zachary Turner97206d52017-05-12 04:51:55 +000044lldb::ValueObjectSP ValueObjectConstResultCast::AddressOf(Status &error) {
Kate Stoneb9c1b512016-09-06 20:57:50 +000045 return m_impl.AddressOf(error);
46}
47
48ValueObject *ValueObjectConstResultCast::CreateChildAtIndex(
49 size_t idx, bool synthetic_array_member, int32_t synthetic_index) {
50 return m_impl.CreateChildAtIndex(idx, synthetic_array_member,
51 synthetic_index);
52}
53
54size_t ValueObjectConstResultCast::GetPointeeData(DataExtractor &data,
55 uint32_t item_idx,
56 uint32_t item_count) {
57 return m_impl.GetPointeeData(data, item_idx, item_count);
Siva Chandraf8877ef2015-07-16 01:47:12 +000058}
59
60lldb::ValueObjectSP
Kate Stoneb9c1b512016-09-06 20:57:50 +000061ValueObjectConstResultCast::Cast(const CompilerType &compiler_type) {
62 return m_impl.Cast(compiler_type);
Siva Chandraf8877ef2015-07-16 01:47:12 +000063}