File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -46,17 +46,17 @@ test:source:llvm9:
46
46
- .julia:source
47
47
- .test
48
48
variables :
49
- CI_BUILD_ARGS : ' LLVM_VER=9.0.0rc6 USE_BINARYBUILDER_LLVM=0'
49
+ CI_BUILD_ARGS : ' LLVM_VER=9.0.0 USE_BINARYBUILDER_LLVM=0'
50
50
51
51
52
52
# other tasks
53
53
54
54
coverage :
55
55
extends :
56
- - .julia:1.2
56
+ - .julia:1.3
57
57
- .coverage
58
58
59
59
documentation :
60
60
extends :
61
- - .julia:1.2
61
+ - .julia:1.3
62
62
- .documentation
Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ export BasicBlockPass
58
58
root:: Any
59
59
60
60
function BasicBlockPass (name:: String , runner:: Core.Function )
61
+ VERSION >= v " 1.4.0-DEV.589" && error (" BasicBlockPass functionality has been removed from Julia and LLVM" )
62
+
61
63
function callback (ptr:: Ptr{Cvoid} ):: Core.Bool
62
64
bb = BasicBlock (convert (reftype (BasicBlock), ptr))
63
65
return runner (bb):: Core.Bool
Original file line number Diff line number Diff line change @@ -51,11 +51,13 @@ LLVM.Module("SomeModule", ctx) do mod
51
51
return false
52
52
end
53
53
54
- let pass = BasicBlockPass (" SomeBasicBlockPass" , runOnBasicBlock)
54
+ if VERSION < v " 1.4.0-DEV.589"
55
+ let pass = BasicBlockPass (" SomeBasicBlockPass" , runOnBasicBlock)
55
56
56
- FunctionPassManager (mod) do fpm
57
- add! (fpm, pass)
58
- run! (fpm, fn)
57
+ FunctionPassManager (mod) do fpm
58
+ add! (fpm, pass)
59
+ run! (fpm, fn)
60
+ end
59
61
end
60
62
end
61
63
end
You can’t perform that action at this time.
0 commit comments