LLVM
8.0.1
|
#include "llvm/DebugInfo/DWARF/DWARFAddressRange.h"
Public Member Functions | |
DWARFAddressRange ()=default | |
DWARFAddressRange (uint64_t LowPC, uint64_t HighPC, uint64_t SectionIndex=0) | |
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 | contains (const DWARFAddressRange &RHS) const |
Returns true if [LowPC, HighPC) fully contains [RHS.LowPC, RHS.HighPC). More... | |
void | dump (raw_ostream &OS, uint32_t AddressSize, DIDumpOptions DumpOpts={}) 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.
|
inline |
void DWARFAddressRange::dump | ( | raw_ostream & | OS, |
uint32_t | AddressSize, | ||
DIDumpOptions | DumpOpts = {} |
||
) | const |
Definition at line 17 of file DWARFAddressRange.cpp.
References llvm::DIDumpOptions::DisplayRawContents, llvm::format(), HighPC, and LowPC.
Referenced by contains(), llvm::RangeListEntry::dump(), and llvm::operator<<().
|
inline |
|
inline |
Returns true if LowPC is smaller or equal to HighPC.
This accounts for dead-stripped ranges.
Definition at line 35 of file DWARFAddressRange.h.
References HighPC.
Referenced by contains(), and intersects().
uint64_t llvm::DWARFAddressRange::HighPC |
Definition at line 24 of file DWARFAddressRange.h.
Referenced by contains(), dump(), llvm::DWARFDebugRnglist::getAbsoluteRanges(), llvm::DWARFDebugRangeList::getAbsoluteRanges(), intersects(), llvm::operator<(), and valid().
uint64_t llvm::DWARFAddressRange::LowPC |
Definition at line 23 of file DWARFAddressRange.h.
Referenced by contains(), dump(), llvm::DWARFDebugRnglist::getAbsoluteRanges(), llvm::DWARFDebugRangeList::getAbsoluteRanges(), intersects(), and llvm::operator<().
uint64_t llvm::DWARFAddressRange::SectionIndex |
Definition at line 25 of file DWARFAddressRange.h.
Referenced by llvm::DWARFDebugRnglist::getAbsoluteRanges(), and llvm::DWARFDebugRangeList::getAbsoluteRanges().