LLDB mainline
DWARFDataExtractor.cpp
Go to the documentation of this file.
1//===-- DWARFDataExtractor.cpp --------------------------------------------===//
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
10#include "llvm/ADT/ArrayRef.h"
11
12namespace lldb_private {
13
14llvm::DWARFDataExtractor DWARFDataExtractor::GetAsLLVMDWARF() const {
15 return llvm::DWARFDataExtractor(llvm::ArrayRef(GetDataStart(), GetByteSize()),
18}
19llvm::DataExtractor DWARFDataExtractor::GetAsLLVM() const {
20 return llvm::DataExtractor(llvm::ArrayRef(GetDataStart(), GetByteSize()),
23}
24} // namespace lldb_private
llvm::DWARFDataExtractor GetAsLLVMDWARF() const
llvm::DataExtractor GetAsLLVM() const
uint64_t GetByteSize() const
Get the number of bytes contained in this object.
const uint8_t * GetDataStart() const
Get the data start pointer.
uint32_t GetAddressByteSize() const
Get the current address size.
lldb::ByteOrder GetByteOrder() const
Get the current byte order value.
A class that represents a running process on the host machine.