Method EmitToBuffer
EmitToBuffer(IModule, CodeGenFileKind)
Emits the module for the target machine to a MemoryBuffer
public MemoryBuffer EmitToBuffer(IModule module, CodeGenFileKind fileType)
Parameters
module
IModuleModuleHandle to emit to the buffer
fileType
CodeGenFileKindType of file to generate into the buffer
Returns
- MemoryBuffer
MemoryBuffer containing the generated code
Remarks
The TargetTriple must match the Triple for this target.