projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Make SetMCJITOptimizationLevel more of a method and pass options
[oota-llvm.git]
/
bindings
/
go
/
llvm
/
executionengine_test.go
diff --git
a/bindings/go/llvm/executionengine_test.go
b/bindings/go/llvm/executionengine_test.go
index 2d5ca721a2a6de0f1a8dc135e4a44e82845f61ef..03fabc83c6ff49a16cfbdbe1de39436d5c9e375d 100644
(file)
--- a/
bindings/go/llvm/executionengine_test.go
+++ b/
bindings/go/llvm/executionengine_test.go
@@
-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)