Direct ELF writer for DWP output.
Synopsis
Declared in <llvm/DWP/DWP.h>
class DWPWriter;
Description
Section data is stored as zero‐copy StringRef chunks pointing to the mmap'd input files, plus an inline buffer for constructed data (emitIntValue). This avoids copying gigabytes of debug section data through the MC infrastructure (MCContext, MCAssembler, MCDataFragment allocation, layout, etc.).
Member Functions
Name |
Description |
|
Construct an empty DWP writer with default ELF metadata. |
Zero‐copy: stores a reference to the input data without copying. Flushes any pending inline data first to preserve output order. |
|
Append |
|
Return the pending inline buffer for section |
|
Set the endianness used when emitting integer values. |
|
Select WASM object output instead of ELF. |
|
Set the ELF e_machine value for the output object. |
|
Set the ELF EI_OSABI value for the output object. |
|
Make |
|
Write the package using WASM or ELF format based on setIsWASM. |
|
Write accumulated sections as a minimal ELF relocatable object. |
|
Write accumulated sections as a minimal WASM object with custom sections. |