llvm::DXContainerObjectWriter

DXContainer object writer that emits DXContainer files from an MCAssembler.

Synopsis

Declared in <llvm/MC/MCDXContainerWriter.h>

class DXContainerObjectWriter final
    : public MCDXContainerBaseWriter
    , public MCObjectWriter

Base Classes

NameDescription
MCDXContainerBaseWriterBase writer that emits DXContainer files from a sequence of named parts.
MCObjectWriterDefines the object file and target independent interfaces used by the assembler backend to write native file format object files.

Member Functions

NameDescription
DXContainerObjectWriter [constructor]Construct a DXContainer object writer.
operator= [deleted]Deleted copy assignment operator.
addAddrsigSymbol Record the given symbol in the address-significance table to be written diring writeObject().
addFileName Append a declared input file name.
emitAddrsigSection Request emission of an address-significance table.
executePostLayoutBinding [virtual]Perform any late binding of symbols (for example, to assign symbol indices for use when generating relocations).
getAddrsigSyms Return the symbols recorded for the address-significance table.
getCGProfile Return the call-graph profile entries to emit.
getContext Get the MC context associated with the assembler.
getEmitAddrsigSection Return whether an address-significance section will be emitted.
getFileNames Return the list of declared input file names.
getSubsectionsViaSymbols Return whether Mach-O .subsections_via_symbols is enabled.
isSymbolRefDifferenceFullyResolved Check whether the difference (A - B) between two symbol references is fully resolved.
isSymbolRefDifferenceFullyResolvedImpl [virtual]Implementation hook for isSymbolRefDifferenceFullyResolved.
recordRelocation [virtual]Record a relocation entry.
reset [virtual]lifetime management
setAssembler [virtual]Set the assembler that owns this object writer.
setCompilerVersion Set the optional compiler version string (XCOFF).
setSubsectionsViaSymbols Enable or disable Mach-O .subsections_via_symbols.
write Write a DXContainer file built from collectParts() to OS.
writeObject [virtual]Write the DXContainer object file and return the number of bytes written.

Protected Types

NameDescription
CGProfileEntry One call-graph profile edge with a from/to pair and edge weight.

Protected Member Functions

NameDescription
collectParts [virtual]Return assembler sections as DXContainer parts, omitting skipped sections.
shouldSkipSection [virtual]Return true if a section should be omitted from the object.

Protected Data Members

NameDescription
AddrsigSyms Symbols to record in the address-significance table.
Asm Assembler that owns this object writer, or null if unset.
CGProfile Accumulated call-graph profile edges to emit.
CompilerVersion Optional compiler version string (XCOFF-specific).
EmitAddrsigSection True if an address-significance section should be emitted.
FileNames List of declared file names
SubsectionsViaSymbols True if Mach-O .subsections_via_symbols is enabled.