Skip to content

Commit 0edc99e

Browse files
vchuravymaleadt
authored andcommitted
set module flags
1 parent fd187ea commit 0edc99e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/module.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,3 +176,9 @@ function Base.getindex(iter::ModuleFunctionSet, name::String)
176176
objref == C_NULL && throw(KeyError(name))
177177
return Function(objref)
178178
end
179+
180+
# flags
181+
if libllvm_version >= v"8.0.0"
182+
addflag!(mod::Module, behavior, key, val) = LLVM.API.LLVMAddModuleFlag(ref(mod), behavior, key, length(key), LLVM.ref(Metadata(val)))
183+
184+
end

0 commit comments

Comments
 (0)