public static extern bool LLVMTargetMachineEmitToMemoryBuffer(IntPtr targetMachine, IntPtr module, LlvmCodeGenFileType codegen, out IntPtr errorMessage, out IntPtr memoryBuffer);
public static extern bool LLVMTargetMachineEmitToFile(IntPtr targetMachine, IntPtr module, string filename, LlvmCodeGenFileType codegen, out IntPtr errorMessage);