LLDB
mainline
llvm-project
lldb
source
Plugins
SymbolFile
DWARF
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
9
#include "
DWARFDataExtractor.h
"
10
#include "llvm/ADT/ArrayRef.h"
11
12
namespace
lldb_private
{
13
14
llvm::DWARFDataExtractor
DWARFDataExtractor::GetAsLLVMDWARF
()
const
{
15
return
llvm::DWARFDataExtractor(llvm::ArrayRef(
GetDataStart
(),
GetByteSize
()),
16
GetByteOrder
() ==
lldb::eByteOrderLittle
,
17
GetAddressByteSize
());
18
}
19
llvm::DataExtractor
DWARFDataExtractor::GetAsLLVM
()
const
{
20
return
llvm::DataExtractor(llvm::ArrayRef(
GetDataStart
(),
GetByteSize
()),
21
GetByteOrder
() ==
lldb::eByteOrderLittle
,
22
GetAddressByteSize
());
23
}
24
}
// namespace lldb_private
DWARFDataExtractor.h
lldb_private::DWARFDataExtractor::GetAsLLVMDWARF
llvm::DWARFDataExtractor GetAsLLVMDWARF() const
Definition
DWARFDataExtractor.cpp:14
lldb_private::DWARFDataExtractor::GetAsLLVM
llvm::DataExtractor GetAsLLVM() const
Definition
DWARFDataExtractor.cpp:19
lldb_private::DataExtractor::GetByteSize
uint64_t GetByteSize() const
Get the number of bytes contained in this object.
Definition
DataExtractor.h:270
lldb_private::DataExtractor::GetDataStart
const uint8_t * GetDataStart() const
Get the data start pointer.
Definition
DataExtractor.h:422
lldb_private::DataExtractor::GetAddressByteSize
uint32_t GetAddressByteSize() const
Get the current address size.
Definition
DataExtractor.h:264
lldb_private::DataExtractor::GetByteOrder
lldb::ByteOrder GetByteOrder() const
Get the current byte order value.
Definition
DataExtractor.h:594
lldb_private
A class that represents a running process on the host machine.
Definition
SBAddressRange.h:14
lldb::eByteOrderLittle
@ eByteOrderLittle
Definition
lldb-enumerations.h:146
Generated on
for LLDB by
1.14.0