Table of Contents

Method EmitToBuffer

Namespace
Ubiquity.NET.Llvm
Assembly
Ubiquity.NET.Llvm.dll

EmitToBuffer(IModule, CodeGenFileKind)

Emits the module for the target machine to a MemoryBuffer

public MemoryBuffer EmitToBuffer(IModule module, CodeGenFileKind fileType)

Parameters

module IModule

ModuleHandle to emit to the buffer

fileType CodeGenFileKind

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.