LLVM  14.0.0git
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::DWARFDebugLine::Sequence Struct Reference

Represents a series of contiguous machine instructions. More...

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

Collaboration diagram for llvm::DWARFDebugLine::Sequence:
Collaboration graph
[legend]

Public Member Functions

 Sequence ()
 
void reset ()
 
bool isValid () const
 
bool containsPC (object::SectionedAddress PC) const
 

Static Public Member Functions

static bool orderByHighPC (const Sequence &LHS, const Sequence &RHS)
 

Public Attributes

uint64_t LowPC
 Sequence describes instructions at address range [LowPC, HighPC) and is described by line table rows [FirstRowIndex, LastRowIndex). More...
 
uint64_t HighPC
 
uint64_t SectionIndex
 If relocation information is present then this is the index of the section which contains above addresses. More...
 
unsigned FirstRowIndex
 
unsigned LastRowIndex
 
bool Empty
 

Detailed Description

Represents a series of contiguous machine instructions.

Line table for each compilation unit may consist of multiple sequences, which are not guaranteed to be in the order of ascending instruction address.

Definition at line 197 of file DWARFDebugLine.h.

Constructor & Destructor Documentation

◆ Sequence()

DWARFDebugLine::Sequence::Sequence ( )

Definition at line 503 of file DWARFDebugLine.cpp.

Member Function Documentation

◆ containsPC()

bool llvm::DWARFDebugLine::Sequence::containsPC ( object::SectionedAddress  PC) const
inline

◆ isValid()

bool llvm::DWARFDebugLine::Sequence::isValid ( ) const
inline

Definition at line 219 of file DWARFDebugLine.h.

References Empty, FirstRowIndex, HighPC, LastRowIndex, and LowPC.

◆ orderByHighPC()

static bool llvm::DWARFDebugLine::Sequence::orderByHighPC ( const Sequence LHS,
const Sequence RHS 
)
inlinestatic

Definition at line 214 of file DWARFDebugLine.h.

References HighPC, and SectionIndex.

◆ reset()

void DWARFDebugLine::Sequence::reset ( )

Definition at line 505 of file DWARFDebugLine.cpp.

References llvm::object::SectionedAddress::UndefSection.

Member Data Documentation

◆ Empty

bool llvm::DWARFDebugLine::Sequence::Empty

Definition at line 210 of file DWARFDebugLine.h.

Referenced by isValid().

◆ FirstRowIndex

unsigned llvm::DWARFDebugLine::Sequence::FirstRowIndex

Definition at line 208 of file DWARFDebugLine.h.

Referenced by isValid().

◆ HighPC

uint64_t llvm::DWARFDebugLine::Sequence::HighPC

Definition at line 203 of file DWARFDebugLine.h.

Referenced by containsPC(), isValid(), and orderByHighPC().

◆ LastRowIndex

unsigned llvm::DWARFDebugLine::Sequence::LastRowIndex

Definition at line 209 of file DWARFDebugLine.h.

Referenced by isValid().

◆ LowPC

uint64_t llvm::DWARFDebugLine::Sequence::LowPC

Sequence describes instructions at address range [LowPC, HighPC) and is described by line table rows [FirstRowIndex, LastRowIndex).

Definition at line 202 of file DWARFDebugLine.h.

Referenced by containsPC(), and isValid().

◆ SectionIndex

uint64_t llvm::DWARFDebugLine::Sequence::SectionIndex

If relocation information is present then this is the index of the section which contains above addresses.

Otherwise this is object::SectionedAddress::Undef value.

Definition at line 207 of file DWARFDebugLine.h.

Referenced by containsPC(), and orderByHighPC().


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