Make sure that the go bindings call LLVMInitializeMCJITCompilerOptions
[oota-llvm.git] / bindings / go / llvm / executionengine_test.go
index 1a3fd456abe9571534996dab593b946c86a064da..2d5ca721a2a6de0f1a8dc135e4a44e82845f61ef 100644 (file)
@@ -66,7 +66,9 @@ func TestFactorial(t *testing.T) {
                return
        }
 
-       engine, err := NewMCJITCompiler(mod, MCJITCompilerOptions{OptLevel: 2})
+       options := NewMCJITCompilerOptions()
+       SetMCJITOptimizationLevel(options, 2)
+       engine, err := NewMCJITCompiler(mod, options)
        if err != nil {
                t.Errorf("Error creating JIT: %s", err)
                return