
To register the code emitter, the following code needs adding to the
machine code target description
.
archMCTargetDesc.cpp
// Register the MC code emitter TargetRegistry::RegisterMCCodeEmitter(ThearchTarget, llvm::createarchMCCodeEmitter);
The create function is declared in the
archMCCodeEmitter
header file and is defined in
archMCTargetDesc.h.
This function simply creates and returns a new
archMCCodeEmitter.cpp.
archMCCodeEmitter
