Exemplo n.º 1
0
 public string GetAsString(out size_t @out)
 {
     return(LLVM.GetAsString(this, out @out));
 }
Exemplo n.º 2
0
        public static ExecutionEngine CreateMCJITCompiler(Module module, LLVMMCJITCompilerOptions options, size_t optionsSize)
        {
            LLVM.InitializeMCJITCompilerOptions(out options, optionsSize);

            IntPtr error;
            LLVMExecutionEngineRef instance;

            if (LLVM.CreateMCJITCompilerForModule(out instance, module.instance, out options, optionsSize, out error))
            {
                ThrowError(error);
            }

            return(new ExecutionEngine(instance));
        }