llvm::gsym::encodeRange

Encode an AddressRange into a binary stream relative to a base address.

Synopsis

Declared in <llvm/DebugInfo/GSYM/ExtractRanges.h>

void
encodeRange(
    AddressRange const& Range,
    FileWriter& O,
    uint64_t BaseAddr);

Description

The range is written as a ULEB128 offset from BaseAddr followed by a ULEB128 size, matching the format consumed by decodeRange.

Parameters

NameDescription
RangeThe address range to encode.
OThe binary stream to write the data to at the current file position.
BaseAddrThe base address to subtract when encoding the range.