LLVM
13.0.0git
|
#include "llvm/DebugInfo/DWARF/DWARFAddressRange.h"
Public Member Functions | |
DWARFAddressRange ()=default | |
DWARFAddressRange (uint64_t LowPC, uint64_t HighPC, uint64_t SectionIndex=object::SectionedAddress::UndefSection) | |
Used for unit testing. More... | |
bool | valid () const |
Returns true if LowPC is smaller or equal to HighPC. More... | |
bool | intersects (const DWARFAddressRange &RHS) const |
Returns true if [LowPC, HighPC) intersects with [RHS.LowPC, RHS.HighPC). More... | |
bool | merge (const DWARFAddressRange &RHS) |
Union two address ranges if they intersect. More... | |
void | dump (raw_ostream &OS, uint32_t AddressSize, DIDumpOptions DumpOpts={}, const DWARFObject *Obj=nullptr) const |
Public Attributes | |
uint64_t | LowPC |
uint64_t | HighPC |
uint64_t | SectionIndex |
Definition at line 22 of file DWARFAddressRange.h.
|
default |
|
inline |
Used for unit testing.
Definition at line 30 of file DWARFAddressRange.h.
void DWARFAddressRange::dump | ( | raw_ostream & | OS, |
uint32_t | AddressSize, | ||
DIDumpOptions | DumpOpts = {} , |
||
const DWARFObject * | Obj = nullptr |
||
) | const |
Definition at line 16 of file DWARFAddressRange.cpp.
References llvm::DIDumpOptions::DisplayRawContents, llvm::DWARFFormValue::dumpAddress(), llvm::DWARFFormValue::dumpAddressSection(), HighPC, LowPC, and SectionIndex.
|
inline |
|
inline |
Union two address ranges if they intersect.
This function will union two address ranges if they intersect by modifying this range to be the union of both ranges. If the two ranges don't intersect this range will be left alone.
RHS | Another address range to combine with. |
Definition at line 58 of file DWARFAddressRange.h.
References HighPC, intersects(), and LowPC.
|
inline |
Returns true if LowPC is smaller or equal to HighPC.
This accounts for dead-stripped ranges.
Definition at line 37 of file DWARFAddressRange.h.
Referenced by intersects().
uint64_t llvm::DWARFAddressRange::HighPC |
Definition at line 24 of file DWARFAddressRange.h.
Referenced by dump(), intersects(), merge(), llvm::operator<(), llvm::operator==(), parseInlineInfo(), and valid().
uint64_t llvm::DWARFAddressRange::LowPC |
Definition at line 23 of file DWARFAddressRange.h.
Referenced by dump(), intersects(), merge(), llvm::operator<(), llvm::operator==(), parseInlineInfo(), and valid().
uint64_t llvm::DWARFAddressRange::SectionIndex |
Definition at line 25 of file DWARFAddressRange.h.
Referenced by dump().