LLVM  6.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::DWARFAddressRange Struct Reference

#include "llvm/DebugInfo/DWARF/DWARFDebugRangeList.h"

Collaboration diagram for llvm::DWARFAddressRange:
Collaboration graph
[legend]

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...
 

Public Attributes

uint64_t LowPC
 
uint64_t HighPC
 
uint64_t SectionIndex
 

Detailed Description

Definition at line 24 of file DWARFDebugRangeList.h.

Constructor & Destructor Documentation

◆ DWARFAddressRange() [1/2]

llvm::DWARFAddressRange::DWARFAddressRange ( )
default

◆ DWARFAddressRange() [2/2]

llvm::DWARFAddressRange::DWARFAddressRange ( uint64_t  LowPC,
uint64_t  HighPC,
uint64_t  SectionIndex = 0 
)
inline

Used for unit testing.

Definition at line 32 of file DWARFDebugRangeList.h.

Member Function Documentation

◆ contains()

bool llvm::DWARFAddressRange::contains ( const DWARFAddressRange RHS) const
inline

Returns true if [LowPC, HighPC) fully contains [RHS.LowPC, RHS.HighPC).

Definition at line 48 of file DWARFDebugRangeList.h.

References HighPC, and LowPC.

◆ intersects()

bool llvm::DWARFAddressRange::intersects ( const DWARFAddressRange RHS) const
inline

Returns true if [LowPC, HighPC) intersects with [RHS.LowPC, RHS.HighPC).

Definition at line 40 of file DWARFDebugRangeList.h.

References HighPC, and LowPC.

◆ valid()

bool llvm::DWARFAddressRange::valid ( ) const
inline

Returns true if LowPC is smaller or equal to HighPC.

This accounts for dead-stripped ranges.

Definition at line 37 of file DWARFDebugRangeList.h.

References HighPC.

Member Data Documentation

◆ HighPC

uint64_t llvm::DWARFAddressRange::HighPC

◆ LowPC

uint64_t llvm::DWARFAddressRange::LowPC

◆ SectionIndex

uint64_t llvm::DWARFAddressRange::SectionIndex

The documentation for this struct was generated from the following file: