llvm::TargetRegistry::RegisterMCObjectFileInfo

Register a MCObjectFileInfo implementation for the given target.

Synopsis

Declared in <llvm/MC/TargetRegistry.h>

static
void
RegisterMCObjectFileInfo(
    Target& T,
    Target::MCObjectFileInfoCtorFnTy Fn);

Description

Clients are responsible for ensuring that registration doesn't occur while another thread is attempting to access the registry. Typically this is done by initializing all targets at program startup.

Parameters

NameDescription
T- The target being registered.
Fn- A function to construct a MCObjectFileInfo for the target.