File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,8 @@ export BasicBlockPass
5858 root:: Any
5959
6060 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+
6163 function callback (ptr:: Ptr{Cvoid} ):: Core.Bool
6264 bb = BasicBlock (convert (reftype (BasicBlock), ptr))
6365 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
5151 return false
5252 end
5353
54- let pass = BasicBlockPass (" SomeBasicBlockPass" , runOnBasicBlock)
54+ if VERSION < v " 1.4.0-DEV.589"
55+ let pass = BasicBlockPass (" SomeBasicBlockPass" , runOnBasicBlock)
5556
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
5961 end
6062 end
6163end
You can’t perform that action at this time.
0 commit comments