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

Synopsis

Declared in <llvm/MC/MCXCOFFObjectWriter.h>

class XCOFFObjectWriter
    : 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

operator= [deleted]

Deleted copy assignment operator.

addAddrsigSymbol

Record the given symbol in the address‐significance table to be written diring writeObject().

addCInfoSymEntry [virtual]

Record a C_INFO symbol with embedded metadata in the .info section.

addExceptionEntry [virtual]

Record a trap in the XCOFF exception section for Symbol.

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.

getCPUType

Return the AIX CPU name stored for C_FILE symbol encoding.

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.

setCPU

Set the AIX CPU name used when encoding C_FILE symbols.

setCompilerVersion

Set the optional compiler version string (XCOFF).

setSubsectionsViaSymbols

Enable or disable Mach‐O .subsections_via_symbols.

writeObject [virtual]

Write the object file and returns 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