llvm::RegisterMCObjectFileInfo

Helper template for registering a target object file info implementation.

Synopsis

Declared in <llvm/MC/TargetRegistry.h>

template<class MCObjectFileInfoImpl>
struct RegisterMCObjectFileInfo;

Description

This invokes the static "Create" method on the class to actually do the construction. Usage:

extern "C" void LLVMInitializeFooTarget() { extern Target TheFooTarget; RegisterMCObjectFileInfo<FooMCObjectFileInfo> X(TheFooTarget); }

Member Functions

NameDescription
RegisterMCObjectFileInfo [constructor]Register MCObjectFileInfoImpl as the MCObjectFileInfo for target T.