Encode an AddressRange into a binary stream relative to a base address.
Declared in <llvm/DebugInfo/GSYM/ExtractRanges.h>
void
encodeRange(
AddressRange const& Range,
FileWriter& O,
uint64_t BaseAddr);
The range is written as a ULEB128 offset from BaseAddr followed by a ULEB128 size, matching the format consumed by decodeRange.
| Name | Description |
|---|---|
| Range | The address range to encode. |
| O | The binary stream to write the data to at the current file position. |
| BaseAddr | The base address to subtract when encoding the range. |