Helper template for registering a target object file info implementation.
Declared in <llvm/MC/TargetRegistry.h>
template<class MCObjectFileInfoImpl>
struct RegisterMCObjectFileInfo;
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); }
| Name | Description |
|---|---|
RegisterMCObjectFileInfo [constructor] | Register MCObjectFileInfoImpl as the MCObjectFileInfo for target T. |