1 //===-- DWARFDataExtractor.cpp ----------------------------------*- C++ -*-===// 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-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #include "DWARFDataExtractor.h" 10 11 namespace lldb_private { 12 13 uint64_t 14 DWARFDataExtractor::GetDWARFInitialLength(lldb::offset_t *offset_ptr) const { 15 return GetU32(offset_ptr); 16 } 17 18 dw_offset_t 19 DWARFDataExtractor::GetDWARFOffset(lldb::offset_t *offset_ptr) const { 20 return GetMaxU64(offset_ptr, GetDWARFSizeOfOffset()); 21 } 22 } 23