Make SetMCJITOptimizationLevel more of a method and pass options
[oota-llvm.git] / bindings / go / llvm / executionengine_test.go
index 2d5ca721a2a6de0f1a8dc135e4a44e82845f61ef..03fabc83c6ff49a16cfbdbe1de39436d5c9e375d 100644 (file)
@@ -67,7 +67,7 @@ func TestFactorial(t *testing.T) {
        }
 
        options := NewMCJITCompilerOptions()
-       SetMCJITOptimizationLevel(options, 2)
+       options.SetMCJITOptimizationLevel(2)
        engine, err := NewMCJITCompiler(mod, options)
        if err != nil {
                t.Errorf("Error creating JIT: %s", err)