llvm::MCObjectTargetWriter

Base class for classes that define behaviour that is specific to both the target and the object format.

Synopsis

Declared in <llvm/MC/MCObjectWriter.h>

class MCObjectTargetWriter;

Member Functions

NameDescription
~MCObjectTargetWriter [destructor] [virtual]Destroy the target object writer.
getFormat [virtual]Return the object file format this writer targets.
setAssembler Set the assembler associated with this target writer.

Protected Member Functions

NameDescription
getContext Get the MC context associated with the assembler.
reportError Report an error at L with message Msg via the assembler context.

Protected Data Members

NameDescription
Asm Assembler that owns this target writer, or null if unset.

Derived Classes

NameDescription
MCDXContainerTargetWriter Target-specific DXContainer object-file writer hooks.
MCELFObjectTargetWriter Target-specific ELF object-file writer hooks.
MCGOFFObjectTargetWriter Target-specific GOFF object-file writer hooks.
MCMachObjectTargetWriter Target-specific Mach-O object-file writer hooks.
MCSPIRVObjectTargetWriter Target-specific SPIR-V object-file writer hooks.
MCWasmObjectTargetWriter Target-specific Wasm object-file writer hooks.
MCWinCOFFObjectTargetWriter Target-specific Win COFF object-file writer hooks.
MCXCOFFObjectTargetWriter Target-specific XCOFF object-file writer hooks.