Skip to content

Commit f5ae50f

Browse files
committed
Use version() API call externally.
1 parent 7d750c1 commit f5ae50f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/libLLVM_extra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ end
9494

9595
else
9696

97-
if LLVM.libllvm_version < v"8.0"
97+
if libllvm_version < v"8.0"
9898

9999
function LLVMAddNVVMReflectPass(PM::LLVMPassManagerRef, smversion)
100100
@apicall(:LLVMExtraAddNVVMReflectPass,Cvoid,(LLVMPassManagerRef,), PM)

test/debuginfo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
DEBUG_METADATA_VERSION()
44

55
Context() do ctx
6-
if LLVM.libllvm_version < v"8.0"
6+
if LLVM.version() < v"8.0"
77
mod = parse(LLVM.Module, """
88
define void @fun() !dbg !5 {
99
top:

test/transform.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ ModulePassManager() do pm
6868
scoped_no_alias_aa!(pm)
6969
basic_alias_analysis!(pm)
7070

71-
if LLVM.libllvm_version < v"8.0"
71+
if LLVM.version() < v"8.0"
7272
bbvectorize!(pm)
7373
end
7474
loop_vectorize!(pm)

0 commit comments

Comments
 (0)