Skip to content

Commit 6ec6bc8

Browse files
authored
Merge pull request #277 from maleadt/tb/llvm13
Bump LLVMExtra for Julia 1.8 compatibility.
2 parents 6a48cae + 4a1febb commit 6ec6bc8

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Manifest.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ version = "1.3.0"
3434

3535
[[LLVMExtra_jll]]
3636
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
37-
git-tree-sha1 = "c5fc4bef251ecd37685bea1c4068a9cfa41e8b9a"
37+
git-tree-sha1 = "62115afed394c016c2d3096c5b85c407b48be96b"
3838
uuid = "dad2f222-ce93-54a1-a47d-0025e8a3acab"
39-
version = "0.0.13+0"
39+
version = "0.0.13+1"
4040

4141
[[LibCURL]]
4242
deps = ["LibCURL_jll", "MozillaCACerts_jll"]

src/executionengine/lljit.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,18 @@ function triple(lljit::LLJIT)
7373
Base.unsafe_string(cstr)
7474
end
7575

76+
if version() < v"13"
7677
function apply_datalayout!(lljit::LLJIT, mod::LLVM.Module)
7778
LLVM.API.LLVMOrcLLJITApplyDataLayout(lljit, mod)
7879
end
80+
else
81+
function datalayout(lljit::LLJIT)
82+
Base.unsafe_string(API.LLVMOrcLLJITGetDataLayoutStr(lljit))
83+
end
84+
function apply_datalayout!(lljit::LLJIT, mod::LLVM.Module)
85+
datalayout!(mod, datalayout(lljit))
86+
end
87+
end
7988

8089
function get_prefix(lljit::LLJIT)
8190
return API.LLVMOrcLLJITGetGlobalPrefix(lljit)

0 commit comments

Comments
 (0)