X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=bindings%2Fgo%2Fllvm%2Fexecutionengine_test.go;h=2d5ca721a2a6de0f1a8dc135e4a44e82845f61ef;hp=1a3fd456abe9571534996dab593b946c86a064da;hb=82ec8476af25616138a9050b5edd6e1e3cf42e4d;hpb=798ace2e58a4bbe607d907a9efc7388e221dc431;ds=sidebyside diff --git a/bindings/go/llvm/executionengine_test.go b/bindings/go/llvm/executionengine_test.go index 1a3fd456abe..2d5ca721a2a 100644 --- a/bindings/go/llvm/executionengine_test.go +++ b/bindings/go/llvm/executionengine_test.go @@ -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