GOFF object writer that emits GOFF object files from an MCAssembler.

Synopsis

Declared in <llvm/MC/MCGOFFObjectWriter.h>

class GOFFObjectWriter
    : public MCObjectWriter

Base Classes

Name

Description

MCObjectWriter

Defines the object file and target independent interfaces used by the assembler backend to write native file format object files.

Member Functions

Name

Description

GOFFObjectWriter [constructor]

Constructors

~GOFFObjectWriter [destructor] [virtual]

Destroy the GOFF 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 GOFF relocation for fixup Fixup in fragment F.

reset [virtual]

Reset writer state for reuse.

setAssembler [virtual]

Set the assembler that owns this object writer.

setCompilerVersion

Set the optional compiler version string (XCOFF).

setRootSD

Set the RootSD section used as the GOFF root structured definition.

setSubsectionsViaSymbols

Enable or disable Mach‐O .subsections_via_symbols.

writeObject [virtual]

Write the GOFF object file and return the number of bytes written.

Protected Types

Name

Description

CGProfileEntry

One call‐graph profile edge with a from/to pair and edge weight.

Protected Data Members

Name

Description

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.

Created with MrDocs