Method EmitToBuffer
EmitToBuffer(BitcodeModule, CodeGenFileType)
Emits the module for the target machine to a MemoryBuffer
Declaration
public MemoryBuffer EmitToBuffer(BitcodeModule module, CodeGenFileType fileType)
Parameters
public MemoryBuffer EmitToBuffer(BitcodeModule module, CodeGenFileType fileType)
BitcodeModule | module | Module to emit to the buffer |
CodeGenFileType | fileType | Type of file to generate into the buffer |
Returns
MemoryBuffer | MemoryBuffer containing the generated code |
Remarks
The TargetTriple must match the Triple for this target.