llvm::TargetRegistry::RegisterMCAsmInfo

RegisterMCAsmInfo - Register a MCAsmInfo implementation for the given target.

Synopsis

Declared in <llvm/MC/TargetRegistry.h>

static
void
RegisterMCAsmInfo(
    Target& T,
    Target::MCAsmInfoCtorFnTy 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 MCAsmInfo for the target.