1 //===-- 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 12 #include "lldb/Core/ValueObjectConstResult.h" 13 #include "lldb/Core/ValueObjectList.h" 14 15 #include "lldb/Symbol/ClangASTContext.h" 16 17 using namespace lldb_private; 18 19 ValueObjectConstResultCast::ValueObjectConstResultCast( 20 ValueObject &parent, const ConstString &name, const CompilerType &cast_type, 21 lldb::addr_t live_address) 22 : ValueObjectCast(parent, name, cast_type), m_impl(this, live_address) { 23 m_name = name; 24 } 25 26 ValueObjectConstResultCast::~ValueObjectConstResultCast() {} 27 28 lldb::ValueObjectSP ValueObjectConstResultCast::Dereference(Error &error) { 29 return m_impl.Dereference(error); 30 } 31 32 lldb::ValueObjectSP ValueObjectConstResultCast::GetSyntheticChildAtOffset( 33 uint32_t offset, const CompilerType &type, bool can_create, 34 ConstString name_const_str) { 35 return m_impl.GetSyntheticChildAtOffset(offset, type, can_create, 36 name_const_str); 37 } 38 39 lldb::ValueObjectSP ValueObjectConstResultCast::AddressOf(Error &error) { 40 return m_impl.AddressOf(error); 41 } 42 43 ValueObject *ValueObjectConstResultCast::CreateChildAtIndex( 44 size_t idx, bool synthetic_array_member, int32_t synthetic_index) { 45 return m_impl.CreateChildAtIndex(idx, synthetic_array_member, 46 synthetic_index); 47 } 48 49 size_t ValueObjectConstResultCast::GetPointeeData(DataExtractor &data, 50 uint32_t item_idx, 51 uint32_t item_count) { 52 return m_impl.GetPointeeData(data, item_idx, item_count); 53 } 54 55 lldb::ValueObjectSP 56 ValueObjectConstResultCast::Cast(const CompilerType &compiler_type) { 57 return m_impl.Cast(compiler_type); 58 } 59