struct DWARFAddressRange

Declaration

struct DWARFAddressRange { /* full declaration omitted */ };

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h:22

Member Variables

public uint64_t LowPC
public uint64_t HighPC
public uint64_t SectionIndex

Method Overview

  • public DWARFAddressRange()
  • public DWARFAddressRange(uint64_t LowPC, uint64_t HighPC, uint64_t SectionIndex = object::SectionedAddress::UndefSection)
  • public void dump(llvm::raw_ostream & OS, uint32_t AddressSize, llvm::DIDumpOptions DumpOpts = {}, const llvm::DWARFObject * Obj = nullptr) const
  • public bool intersects(const llvm::DWARFAddressRange & RHS) const
  • public bool valid() const

Methods

DWARFAddressRange()

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h:27

DWARFAddressRange(
    uint64_t LowPC,
    uint64_t HighPC,
    uint64_t SectionIndex =
        object::SectionedAddress::UndefSection)

Description

Used for unit testing.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h:30

Parameters

uint64_t LowPC
uint64_t HighPC
uint64_t SectionIndex = object::SectionedAddress::UndefSection

void dump(
    llvm::raw_ostream& OS,
    uint32_t AddressSize,
    llvm::DIDumpOptions DumpOpts = {},
    const llvm::DWARFObject* Obj = nullptr) const

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h:48

Parameters

llvm::raw_ostream& OS
uint32_t AddressSize
llvm::DIDumpOptions DumpOpts = {}
const llvm::DWARFObject* Obj = nullptr

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

Description

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

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h:40

Parameters

const llvm::DWARFAddressRange& RHS

bool valid() const

Description

Returns true if LowPC is smaller or equal to HighPC. This accounts for dead-stripped ranges.

Declared at: llvm/include/llvm/DebugInfo/DWARF/DWARFAddressRange.h:37